Commit afab2a5d435ae169cad5b131b921333750d26d07

Authored by conradverm
1 parent d1b1beda

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 32 */
33 33  
34 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 48 class DashboardDispatcher extends KTStandardDispatcher {
49 49  
... ... @@ -65,9 +65,9 @@ class DashboardDispatcher extends KTStandardDispatcher {
65 65 $oDashletRegistry =& KTDashletRegistry::getSingleton();
66 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 72 // simplistic improvement over the standard rendering: float half left
73 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 96  
97 97 // dashboard
98 98 $sDashboardState = $this->oUser->getDashboardState();
99   - $sDSJS = "var savedState = ";
  99 + $sDSJS = 'var savedState = ';
100 100 if($sDashboardState == null) {
101   - $sDSJS .= "false";
  101 + $sDSJS .= 'false';
102 102 $sDashboardState = false;
103 103 } else {
104 104 $sDSJS .= $sDashboardState;
... ... @@ -110,11 +110,11 @@ class DashboardDispatcher extends KTStandardDispatcher {
110 110  
111 111 // render
112 112 $oTemplating =& KTTemplating::getSingleton();
113   - $oTemplate = $oTemplating->loadTemplate("kt3/dashboard");
  113 + $oTemplate = $oTemplating->loadTemplate('kt3/dashboard');
114 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 119 return $oTemplate->render($aTemplateData);
120 120 }
... ...