Commit 107d4d2ea33cbb27bab89a6416060e4f0cac9b25
1 parent
4df57d85
KTS-1687
"Double quote to single quote conversion" Fixed. Reviewed by: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6221 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
18 additions
and
18 deletions
dashboard.php
| @@ -32,18 +32,18 @@ | @@ -32,18 +32,18 @@ | ||
| 32 | */ | 32 | */ |
| 33 | 33 | ||
| 34 | // main library routines and defaults | 34 | // main library routines and defaults |
| 35 | -require_once("config/dmsDefaults.php"); | ||
| 36 | -require_once(KT_LIB_DIR . "/unitmanagement/Unit.inc"); | 35 | +require_once('config/dmsDefaults.php'); |
| 36 | +require_once(KT_LIB_DIR . '/unitmanagement/Unit.inc'); | ||
| 37 | 37 | ||
| 38 | -require_once(KT_LIB_DIR . "/dashboard/dashletregistry.inc.php"); | ||
| 39 | -require_once(KT_LIB_DIR . "/dashboard/dashlet.inc.php"); | ||
| 40 | -require_once(KT_LIB_DIR . "/templating/templating.inc.php"); | ||
| 41 | -require_once(KT_LIB_DIR . "/templating/kt3template.inc.php"); | ||
| 42 | -require_once(KT_LIB_DIR . "/dispatcher.inc.php"); | 38 | +require_once(KT_LIB_DIR . '/dashboard/dashletregistry.inc.php'); |
| 39 | +require_once(KT_LIB_DIR . '/dashboard/dashlet.inc.php'); | ||
| 40 | +require_once(KT_LIB_DIR . '/templating/templating.inc.php'); | ||
| 41 | +require_once(KT_LIB_DIR . '/templating/kt3template.inc.php'); | ||
| 42 | +require_once(KT_LIB_DIR . '/dispatcher.inc.php'); | ||
| 43 | 43 | ||
| 44 | -require_once(KT_LIB_DIR . "/dashboard/DashletDisables.inc.php"); | 44 | +require_once(KT_LIB_DIR . '/dashboard/DashletDisables.inc.php'); |
| 45 | 45 | ||
| 46 | -$sectionName = "dashboard"; | 46 | +$sectionName = 'dashboard'; |
| 47 | 47 | ||
| 48 | class DashboardDispatcher extends KTStandardDispatcher { | 48 | class DashboardDispatcher extends KTStandardDispatcher { |
| 49 | 49 | ||
| @@ -65,9 +65,9 @@ class DashboardDispatcher extends KTStandardDispatcher { | @@ -65,9 +65,9 @@ class DashboardDispatcher extends KTStandardDispatcher { | ||
| 65 | $oDashletRegistry =& KTDashletRegistry::getSingleton(); | 65 | $oDashletRegistry =& KTDashletRegistry::getSingleton(); |
| 66 | $aDashlets = $oDashletRegistry->getDashlets($this->oUser); | 66 | $aDashlets = $oDashletRegistry->getDashlets($this->oUser); |
| 67 | 67 | ||
| 68 | - $this->sSection = "dashboard"; | ||
| 69 | - $this->oPage->setBreadcrumbDetails(_kt("Home")); | ||
| 70 | - $this->oPage->title = _kt("Dashboard"); | 68 | + $this->sSection = 'dashboard'; |
| 69 | + $this->oPage->setBreadcrumbDetails(_kt('Home')); | ||
| 70 | + $this->oPage->title = _kt('Dashboard'); | ||
| 71 | 71 | ||
| 72 | // simplistic improvement over the standard rendering: float half left | 72 | // simplistic improvement over the standard rendering: float half left |
| 73 | // and half right. +Involves no JS -can leave lots of white-space at the bottom. | 73 | // and half right. +Involves no JS -can leave lots of white-space at the bottom. |
| @@ -96,9 +96,9 @@ class DashboardDispatcher extends KTStandardDispatcher { | @@ -96,9 +96,9 @@ class DashboardDispatcher extends KTStandardDispatcher { | ||
| 96 | 96 | ||
| 97 | // dashboard | 97 | // dashboard |
| 98 | $sDashboardState = $this->oUser->getDashboardState(); | 98 | $sDashboardState = $this->oUser->getDashboardState(); |
| 99 | - $sDSJS = "var savedState = "; | 99 | + $sDSJS = 'var savedState = '; |
| 100 | if($sDashboardState == null) { | 100 | if($sDashboardState == null) { |
| 101 | - $sDSJS .= "false"; | 101 | + $sDSJS .= 'false'; |
| 102 | $sDashboardState = false; | 102 | $sDashboardState = false; |
| 103 | } else { | 103 | } else { |
| 104 | $sDSJS .= $sDashboardState; | 104 | $sDSJS .= $sDashboardState; |
| @@ -110,11 +110,11 @@ class DashboardDispatcher extends KTStandardDispatcher { | @@ -110,11 +110,11 @@ class DashboardDispatcher extends KTStandardDispatcher { | ||
| 110 | 110 | ||
| 111 | // render | 111 | // render |
| 112 | $oTemplating =& KTTemplating::getSingleton(); | 112 | $oTemplating =& KTTemplating::getSingleton(); |
| 113 | - $oTemplate = $oTemplating->loadTemplate("kt3/dashboard"); | 113 | + $oTemplate = $oTemplating->loadTemplate('kt3/dashboard'); |
| 114 | $aTemplateData = array( | 114 | $aTemplateData = array( |
| 115 | - "context" => $this, | ||
| 116 | - "dashlets_left" => $aDashletsLeft, | ||
| 117 | - "dashlets_right" => $aDashletsRight, | 115 | + 'context' => $this, |
| 116 | + 'dashlets_left' => $aDashletsLeft, | ||
| 117 | + 'dashlets_right' => $aDashletsRight, | ||
| 118 | ); | 118 | ); |
| 119 | return $oTemplate->render($aTemplateData); | 119 | return $oTemplate->render($aTemplateData); |
| 120 | } | 120 | } |