Commit 2fc3ba716f8723c738a91355e2be6f57e07f338b
1 parent
c45f9fac
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@6259 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
20 additions
and
20 deletions
plugins/ktcore/KTDashlets.php
| ... | ... | @@ -25,9 +25,9 @@ |
| 25 | 25 | */ |
| 26 | 26 | |
| 27 | 27 | require_once(KT_LIB_DIR . '/dashboard/dashlet.inc.php'); |
| 28 | -require_once(KT_LIB_DIR . "/templating/templating.inc.php"); | |
| 29 | -require_once(KT_LIB_DIR . "/dashboard/Notification.inc.php"); | |
| 30 | -require_once(KT_LIB_DIR . "/security/Permission.inc"); | |
| 28 | +require_once(KT_LIB_DIR . '/templating/templating.inc.php'); | |
| 29 | +require_once(KT_LIB_DIR . '/dashboard/Notification.inc.php'); | |
| 30 | +require_once(KT_LIB_DIR . '/security/Permission.inc'); | |
| 31 | 31 | |
| 32 | 32 | require_once(KT_LIB_DIR . '/help/help.inc.php'); |
| 33 | 33 | require_once(KT_LIB_DIR . '/help/helpreplacement.inc.php'); |
| ... | ... | @@ -87,7 +87,7 @@ class KTInfoDashlet extends KTBaseDashlet { |
| 87 | 87 | |
| 88 | 88 | function render() { |
| 89 | 89 | $oTemplating =& KTTemplating::getSingleton(); |
| 90 | - $oTemplate = $oTemplating->loadTemplate("ktcore/dashlets/kt3release"); | |
| 90 | + $oTemplate = $oTemplating->loadTemplate('ktcore/dashlets/kt3release'); | |
| 91 | 91 | |
| 92 | 92 | $aTemplateData = array( |
| 93 | 93 | 'title' => $this->aHelpInfo['title'], |
| ... | ... | @@ -110,14 +110,14 @@ class KTNotificationDashlet extends KTBaseDashlet { |
| 110 | 110 | |
| 111 | 111 | function is_active($oUser) { |
| 112 | 112 | $this->oUser = $oUser; |
| 113 | - $notifications = KTNotification::getList(array("user_id = ?", $this->oUser->getId())); | |
| 113 | + $notifications = KTNotification::getList(array('user_id = ?', $this->oUser->getId())); | |
| 114 | 114 | if (empty($notifications)) { return false; } |
| 115 | 115 | return true; |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | function render() { |
| 119 | 119 | |
| 120 | - $notifications = KTNotification::getList(array("user_id = ?", $this->oUser->getId())); | |
| 120 | + $notifications = KTNotification::getList(array('user_id = ?', $this->oUser->getId())); | |
| 121 | 121 | $num_notifications = count($notifications); |
| 122 | 122 | |
| 123 | 123 | $_MAX_NOTIFICATIONS = 5; |
| ... | ... | @@ -132,12 +132,12 @@ class KTNotificationDashlet extends KTBaseDashlet { |
| 132 | 132 | $link = $oPlugin->getPagePath('notifications'); |
| 133 | 133 | |
| 134 | 134 | $oTemplating =& KTTemplating::getSingleton(); |
| 135 | - $oTemplate = $oTemplating->loadTemplate("ktcore/dashlets/notifications"); | |
| 135 | + $oTemplate = $oTemplating->loadTemplate('ktcore/dashlets/notifications'); | |
| 136 | 136 | $aTemplateData = array( |
| 137 | - "notifications" => $notifications, | |
| 138 | - "notification_count" => $num_notifications, | |
| 139 | - "visible_count" => count($notifications), | |
| 140 | - "link_all" => $link, | |
| 137 | + 'notifications' => $notifications, | |
| 138 | + 'notification_count' => $num_notifications, | |
| 139 | + 'visible_count' => count($notifications), | |
| 140 | + 'link_all' => $link, | |
| 141 | 141 | ); |
| 142 | 142 | return $oTemplate->render($aTemplateData); |
| 143 | 143 | } |
| ... | ... | @@ -156,7 +156,7 @@ class KTCheckoutDashlet extends KTBaseDashlet { |
| 156 | 156 | |
| 157 | 157 | function is_active($oUser) { |
| 158 | 158 | $this->oUser = $oUser; |
| 159 | - $this->checked_out_documents = Document::getList(array("checked_out_user_id = ?", $this->oUser->getId())); | |
| 159 | + $this->checked_out_documents = Document::getList(array('checked_out_user_id = ?', $this->oUser->getId())); | |
| 160 | 160 | |
| 161 | 161 | return (!empty($this->checked_out_documents)); |
| 162 | 162 | return true; |
| ... | ... | @@ -170,10 +170,10 @@ class KTCheckoutDashlet extends KTBaseDashlet { |
| 170 | 170 | |
| 171 | 171 | |
| 172 | 172 | $oTemplating =& KTTemplating::getSingleton(); |
| 173 | - $oTemplate = $oTemplating->loadTemplate("ktcore/dashlets/checkedout"); | |
| 173 | + $oTemplate = $oTemplating->loadTemplate('ktcore/dashlets/checkedout'); | |
| 174 | 174 | $aTemplateData = array( |
| 175 | - "context" => $this, | |
| 176 | - "documents" => $this->checked_out_documents, | |
| 175 | + 'context' => $this, | |
| 176 | + 'documents' => $this->checked_out_documents, | |
| 177 | 177 | ); |
| 178 | 178 | return $oTemplate->render($aTemplateData); |
| 179 | 179 | } |
| ... | ... | @@ -239,10 +239,10 @@ class KTIndexerStatusDashlet extends KTBaseDashlet { |
| 239 | 239 | |
| 240 | 240 | |
| 241 | 241 | $oTemplating =& KTTemplating::getSingleton(); |
| 242 | - $oTemplate = $oTemplating->loadTemplate("ktcore/dashlets/indexer_status"); | |
| 242 | + $oTemplate = $oTemplating->loadTemplate('ktcore/dashlets/indexer_status'); | |
| 243 | 243 | $aTemplateData = array( |
| 244 | - "context" => $this, | |
| 245 | - "no_transforms" => $this->noTransforms, | |
| 244 | + 'context' => $this, | |
| 245 | + 'no_transforms' => $this->noTransforms, | |
| 246 | 246 | 'transforms' => $this->aTriggerSet, |
| 247 | 247 | ); |
| 248 | 248 | return $oTemplate->render($aTemplateData); |
| ... | ... | @@ -271,10 +271,10 @@ class KTMailServerDashlet extends KTBaseDashlet { |
| 271 | 271 | |
| 272 | 272 | function render() { |
| 273 | 273 | $oTemplating =& KTTemplating::getSingleton(); |
| 274 | - $oTemplate = $oTemplating->loadTemplate("ktcore/dashlets/mailserver"); | |
| 274 | + $oTemplate = $oTemplating->loadTemplate('ktcore/dashlets/mailserver'); | |
| 275 | 275 | $admin = Permission::userIsSystemAdministrator($_SESSION['userID']); |
| 276 | 276 | $aTemplateData = array( |
| 277 | - "context" => $this, | |
| 277 | + 'context' => $this, | |
| 278 | 278 | 'admin' => $admin, |
| 279 | 279 | ); |
| 280 | 280 | return $oTemplate->render($aTemplateData); | ... | ... |