Commit b7cf972c6faa82013e0f258c574e2e7821652efc
1 parent
1b5bfc76
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@6224 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
15 additions
and
15 deletions
lib/actions/bulkaction.php
| @@ -43,7 +43,7 @@ class KTBulkAction extends KTStandardDispatcher { | @@ -43,7 +43,7 @@ class KTBulkAction extends KTStandardDispatcher { | ||
| 43 | var $bAllowInAdminMode = false; | 43 | var $bAllowInAdminMode = false; |
| 44 | var $sHelpPage = 'ktcore/browse.html'; | 44 | var $sHelpPage = 'ktcore/browse.html'; |
| 45 | 45 | ||
| 46 | - var $sSection = "view_details"; | 46 | + var $sSection = 'view_details'; |
| 47 | 47 | ||
| 48 | var $_bMutator = false; | 48 | var $_bMutator = false; |
| 49 | var $_bMutationAllowedByAdmin = true; | 49 | var $_bMutationAllowedByAdmin = true; |
| @@ -82,14 +82,14 @@ class KTBulkAction extends KTStandardDispatcher { | @@ -82,14 +82,14 @@ class KTBulkAction extends KTStandardDispatcher { | ||
| 82 | 82 | ||
| 83 | function getURL() { | 83 | function getURL() { |
| 84 | $oKTConfig =& KTConfig::getSingleton(); | 84 | $oKTConfig =& KTConfig::getSingleton(); |
| 85 | - $sExt = ".php"; | 85 | + $sExt = '.php'; |
| 86 | if (KTUtil::arrayGet($_SERVER, 'kt_no_extensions')) { | 86 | if (KTUtil::arrayGet($_SERVER, 'kt_no_extensions')) { |
| 87 | - $sExt = ""; | 87 | + $sExt = ''; |
| 88 | } | 88 | } |
| 89 | - if ($oKTConfig->get("KnowledgeTree/pathInfoSupport")) { | ||
| 90 | - return sprintf("%s/action%s/%s", $GLOBALS['KTRootUrl'], $sExt, $this->sName); | 89 | + if ($oKTConfig->get('KnowledgeTree/pathInfoSupport')) { |
| 90 | + return sprintf('%s/action%s/%s', $GLOBALS['KTRootUrl'], $sExt, $this->sName); | ||
| 91 | } else { | 91 | } else { |
| 92 | - return sprintf("%s/action%s?kt_path_info=%s", $GLOBALS['KTRootUrl'], $sExt, $this->sName); | 92 | + return sprintf('%s/action%s?kt_path_info=%s', $GLOBALS['KTRootUrl'], $sExt, $this->sName); |
| 93 | } | 93 | } |
| 94 | } | 94 | } |
| 95 | 95 | ||
| @@ -153,9 +153,9 @@ class KTBulkAction extends KTStandardDispatcher { | @@ -153,9 +153,9 @@ class KTBulkAction extends KTStandardDispatcher { | ||
| 153 | //$this->oFolder =& $this->oValidator->validateFolder($_REQUEST['fFolderId']); | 153 | //$this->oFolder =& $this->oValidator->validateFolder($_REQUEST['fFolderId']); |
| 154 | 154 | ||
| 155 | $aOptions = array( | 155 | $aOptions = array( |
| 156 | - "final" => false, | ||
| 157 | - "documentaction" => "viewDocument", | ||
| 158 | - "folderaction" => "browse", | 156 | + 'final' => false, |
| 157 | + 'documentaction' => 'viewDocument', | ||
| 158 | + 'folderaction' => 'browse', | ||
| 159 | ); | 159 | ); |
| 160 | 160 | ||
| 161 | $this->aBreadcrumbs = array(array('name'=>_kt('Bulk Actions')), | 161 | $this->aBreadcrumbs = array(array('name'=>_kt('Bulk Actions')), |
| @@ -289,7 +289,7 @@ class KTBulkAction extends KTStandardDispatcher { | @@ -289,7 +289,7 @@ class KTBulkAction extends KTStandardDispatcher { | ||
| 289 | $oForm = new KTForm; | 289 | $oForm = new KTForm; |
| 290 | $oForm->setOptions(array( | 290 | $oForm->setOptions(array( |
| 291 | 'identifier' => 'ktcore.actions.bulk.listing.form', | 291 | 'identifier' => 'ktcore.actions.bulk.listing.form', |
| 292 | - 'submit_label' => _kt("Continue"), | 292 | + 'submit_label' => _kt('Continue'), |
| 293 | 'targeturl' => $this->getURL(), | 293 | 'targeturl' => $this->getURL(), |
| 294 | 'action' => 'collectinfo', | 294 | 'action' => 'collectinfo', |
| 295 | 'fail_action' => 'main', | 295 | 'fail_action' => 'main', |
| @@ -325,7 +325,7 @@ class KTBulkAction extends KTStandardDispatcher { | @@ -325,7 +325,7 @@ class KTBulkAction extends KTStandardDispatcher { | ||
| 325 | $oForm = new KTForm; | 325 | $oForm = new KTForm; |
| 326 | $oForm->setOptions(array( | 326 | $oForm->setOptions(array( |
| 327 | 'identifier' => 'ktcore.actions.bulk.complete.form', | 327 | 'identifier' => 'ktcore.actions.bulk.complete.form', |
| 328 | - 'submit_label' => _kt("Return"), | 328 | + 'submit_label' => _kt('Return'), |
| 329 | 'targeturl' => $sTargetUrl, | 329 | 'targeturl' => $sTargetUrl, |
| 330 | 'context' => $this, | 330 | 'context' => $this, |
| 331 | 'action' => $sAction, | 331 | 'action' => $sAction, |
| @@ -391,7 +391,7 @@ class KTBulkAction extends KTStandardDispatcher { | @@ -391,7 +391,7 @@ class KTBulkAction extends KTStandardDispatcher { | ||
| 391 | 391 | ||
| 392 | // override to do the actual action, on an individual entity | 392 | // override to do the actual action, on an individual entity |
| 393 | function perform_action($oEntity) { | 393 | function perform_action($oEntity) { |
| 394 | - return PEAR::raiseError(_kt("Action component not implemented")); | 394 | + return PEAR::raiseError(_kt('Action component not implemented')); |
| 395 | } | 395 | } |
| 396 | 396 | ||
| 397 | // check an individual entity - this should be overrided with additional | 397 | // check an individual entity - this should be overrided with additional |
| @@ -459,12 +459,12 @@ class KTBulkFolderAction extends KTBulkAction { | @@ -459,12 +459,12 @@ class KTBulkFolderAction extends KTBulkAction { | ||
| 459 | // util class for bulk actions | 459 | // util class for bulk actions |
| 460 | 460 | ||
| 461 | class KTBulkActionUtil { | 461 | class KTBulkActionUtil { |
| 462 | - function getBulkActionInfo($slot = "bulkaction") { | 462 | + function getBulkActionInfo($slot = 'bulkaction') { |
| 463 | $oRegistry =& KTActionRegistry::getSingleton(); | 463 | $oRegistry =& KTActionRegistry::getSingleton(); |
| 464 | return $oRegistry->getActions($slot); | 464 | return $oRegistry->getActions($slot); |
| 465 | } | 465 | } |
| 466 | 466 | ||
| 467 | - function getAllBulkActions($slot = "bulkaction") { | 467 | + function getAllBulkActions($slot = 'bulkaction') { |
| 468 | $aObjects = array(); | 468 | $aObjects = array(); |
| 469 | 469 | ||
| 470 | foreach (KTBulkActionUtil::getBulkActionInfo($slot) as $aAction) { | 470 | foreach (KTBulkActionUtil::getBulkActionInfo($slot) as $aAction) { |
| @@ -479,7 +479,7 @@ class KTBulkActionUtil { | @@ -479,7 +479,7 @@ class KTBulkActionUtil { | ||
| 479 | return $aObjects; | 479 | return $aObjects; |
| 480 | } | 480 | } |
| 481 | 481 | ||
| 482 | - function getBulkActionsByNames($aNames, $slot = "bulkaction", $oUser = null) { | 482 | + function getBulkActionsByNames($aNames, $slot = 'bulkaction', $oUser = null) { |
| 483 | $aObjects = array(); | 483 | $aObjects = array(); |
| 484 | foreach (KTBulkActionUtil::getBulkActionInfo($slot) as $aAction) { | 484 | foreach (KTBulkActionUtil::getBulkActionInfo($slot) as $aAction) { |
| 485 | list($sClassName, $sPath, $sName, $sPlugin) = $aAction; | 485 | list($sClassName, $sPath, $sName, $sPlugin) = $aAction; |