Commit 590830931fdbf6230c9bb579ee03920a99d238d8

Authored by Conrad Vermeulen
1 parent b7cf972c

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@6225 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/actions/documentaction.inc.php
... ... @@ -33,12 +33,12 @@ class KTDocumentAction extends KTStandardDispatcher {
33 33 var $sName;
34 34 var $sDescription;
35 35  
36   - var $_sShowPermission = "ktcore.permissions.read";
  36 + var $_sShowPermission = 'ktcore.permissions.read';
37 37 var $_sDisablePermission;
38 38 var $bAllowInAdminMode = false;
39 39 var $sHelpPage = 'ktcore/browse.html';
40 40  
41   - var $sSection = "view_details";
  41 + var $sSection = 'view_details';
42 42  
43 43 var $_bMutator = false;
44 44 var $_bMutationAllowedByAdmin = true;
... ... @@ -111,14 +111,14 @@ class KTDocumentAction extends KTStandardDispatcher {
111 111  
112 112 function getURL() {
113 113 $oKTConfig =& KTConfig::getSingleton();
114   - $sExt = ".php";
  114 + $sExt = '.php';
115 115 if (KTUtil::arrayGet($_SERVER, 'kt_no_extensions')) {
116   - $sExt = "";
  116 + $sExt = '';
117 117 }
118   - if ($oKTConfig->get("KnowledgeTree/pathInfoSupport")) {
119   - return sprintf("%s/action%s/%s?fDocumentId=%d", $GLOBALS['KTRootUrl'], $sExt, $this->sName, $this->oDocument->getID());
  118 + if ($oKTConfig->get('KnowledgeTree/pathInfoSupport')) {
  119 + return sprintf('%s/action%s/%s?fDocumentId=%d', $GLOBALS['KTRootUrl'], $sExt, $this->sName, $this->oDocument->getID());
120 120 } else {
121   - return sprintf("%s/action%s?kt_path_info=%s&fDocumentId=%d", $GLOBALS['KTRootUrl'], $sExt, $this->sName, $this->oDocument->getID());
  121 + return sprintf('%s/action%s?kt_path_info=%s&fDocumentId=%d', $GLOBALS['KTRootUrl'], $sExt, $this->sName, $this->oDocument->getID());
122 122 }
123 123 }
124 124  
... ... @@ -164,9 +164,9 @@ class KTDocumentAction extends KTStandardDispatcher {
164 164  
165 165 if (!$this->_show()) { return false; }
166 166  
167   - $aOptions = array("final" => false,
168   - "documentaction" => "viewDocument",
169   - "folderaction" => "browse",
  167 + $aOptions = array('final' => false,
  168 + 'documentaction' => 'viewDocument',
  169 + 'folderaction' => 'browse',
170 170 );
171 171 $this->aBreadcrumbs = kt_array_merge($this->aBreadcrumbs,
172 172 KTBrowseUtil::breadcrumbsForDocument($this->oDocument, $aOptions));
... ... @@ -187,17 +187,17 @@ class KTDocumentAction extends KTStandardDispatcher {
187 187 }
188 188  
189 189 function do_main() {
190   - return _kt("Dispatcher component of action not implemented.");
  190 + return _kt('Dispatcher component of action not implemented.');
191 191 }
192 192 }
193 193  
194 194 class KTDocumentActionUtil {
195   - function getDocumentActionInfo($slot = "documentaction") {
  195 + function getDocumentActionInfo($slot = 'documentaction') {
196 196 $oRegistry =& KTActionRegistry::getSingleton();
197 197 return $oRegistry->getActions($slot);
198 198 }
199 199  
200   - function &getDocumentActionsForDocument(&$oDocument, $oUser, $slot = "documentaction") {
  200 + function &getDocumentActionsForDocument(&$oDocument, $oUser, $slot = 'documentaction') {
201 201 $aObjects = array();
202 202 foreach (KTDocumentActionUtil::getDocumentActionInfo($slot) as $aAction) {
203 203 list($sClassName, $sPath, $sPlugin) = $aAction;
... ... @@ -211,7 +211,7 @@ class KTDocumentActionUtil {
211 211 return $aObjects;
212 212 }
213 213  
214   - function getAllDocumentActions($slot = "documentaction") {
  214 + function getAllDocumentActions($slot = 'documentaction') {
215 215 $aObjects = array();
216 216 $oDocument = null;
217 217 $oUser = null;
... ... @@ -227,7 +227,7 @@ class KTDocumentActionUtil {
227 227 return $aObjects;
228 228 }
229 229  
230   - function getDocumentActionsByNames($aNames, $slot = "documentaction", $oDocument = null, $oUser = null) {
  230 + function getDocumentActionsByNames($aNames, $slot = 'documentaction', $oDocument = null, $oUser = null) {
231 231 $aObjects = array();
232 232 foreach (KTDocumentActionUtil::getDocumentActionInfo($slot) as $aAction) {
233 233 list($sClassName, $sPath, $sName, $sPlugin) = $aAction;
... ...