Commit b7cf972c6faa82013e0f258c574e2e7821652efc

Authored by Conrad Vermeulen
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 43 var $bAllowInAdminMode = false;
44 44 var $sHelpPage = 'ktcore/browse.html';
45 45  
46   - var $sSection = "view_details";
  46 + var $sSection = 'view_details';
47 47  
48 48 var $_bMutator = false;
49 49 var $_bMutationAllowedByAdmin = true;
... ... @@ -82,14 +82,14 @@ class KTBulkAction extends KTStandardDispatcher {
82 82  
83 83 function getURL() {
84 84 $oKTConfig =& KTConfig::getSingleton();
85   - $sExt = ".php";
  85 + $sExt = '.php';
86 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 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 153 //$this->oFolder =& $this->oValidator->validateFolder($_REQUEST['fFolderId']);
154 154  
155 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 161 $this->aBreadcrumbs = array(array('name'=>_kt('Bulk Actions')),
... ... @@ -289,7 +289,7 @@ class KTBulkAction extends KTStandardDispatcher {
289 289 $oForm = new KTForm;
290 290 $oForm->setOptions(array(
291 291 'identifier' => 'ktcore.actions.bulk.listing.form',
292   - 'submit_label' => _kt("Continue"),
  292 + 'submit_label' => _kt('Continue'),
293 293 'targeturl' => $this->getURL(),
294 294 'action' => 'collectinfo',
295 295 'fail_action' => 'main',
... ... @@ -325,7 +325,7 @@ class KTBulkAction extends KTStandardDispatcher {
325 325 $oForm = new KTForm;
326 326 $oForm->setOptions(array(
327 327 'identifier' => 'ktcore.actions.bulk.complete.form',
328   - 'submit_label' => _kt("Return"),
  328 + 'submit_label' => _kt('Return'),
329 329 'targeturl' => $sTargetUrl,
330 330 'context' => $this,
331 331 'action' => $sAction,
... ... @@ -391,7 +391,7 @@ class KTBulkAction extends KTStandardDispatcher {
391 391  
392 392 // override to do the actual action, on an individual entity
393 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 397 // check an individual entity - this should be overrided with additional
... ... @@ -459,12 +459,12 @@ class KTBulkFolderAction extends KTBulkAction {
459 459 // util class for bulk actions
460 460  
461 461 class KTBulkActionUtil {
462   - function getBulkActionInfo($slot = "bulkaction") {
  462 + function getBulkActionInfo($slot = 'bulkaction') {
463 463 $oRegistry =& KTActionRegistry::getSingleton();
464 464 return $oRegistry->getActions($slot);
465 465 }
466 466  
467   - function getAllBulkActions($slot = "bulkaction") {
  467 + function getAllBulkActions($slot = 'bulkaction') {
468 468 $aObjects = array();
469 469  
470 470 foreach (KTBulkActionUtil::getBulkActionInfo($slot) as $aAction) {
... ... @@ -479,7 +479,7 @@ class KTBulkActionUtil {
479 479 return $aObjects;
480 480 }
481 481  
482   - function getBulkActionsByNames($aNames, $slot = "bulkaction", $oUser = null) {
  482 + function getBulkActionsByNames($aNames, $slot = 'bulkaction', $oUser = null) {
483 483 $aObjects = array();
484 484 foreach (KTBulkActionUtil::getBulkActionInfo($slot) as $aAction) {
485 485 list($sClassName, $sPath, $sName, $sPlugin) = $aAction;
... ...