Commit e4b525719f3e75e81ce9d3be1e8e2e9a722b0f43
1 parent
c3ab9710
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@6236 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
9 additions
and
9 deletions
bin/storageverification.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | require_once(dirname(__FILE__) . '/../config/dmsDefaults.php'); |
| 4 | -require_once(KT_LIB_DIR . "/dispatcher.inc.php"); | |
| 5 | -$sectionName = "Administration"; | |
| 6 | -require_once(KT_LIB_DIR . "/templating/kt3template.inc.php"); | |
| 4 | +require_once(KT_LIB_DIR . '/dispatcher.inc.php'); | |
| 5 | +$sectionName = 'Administration'; | |
| 6 | +require_once(KT_LIB_DIR . '/templating/kt3template.inc.php'); | |
| 7 | 7 | |
| 8 | 8 | require_once(KT_LIB_DIR . '/browse/browseutil.inc.php'); |
| 9 | 9 | |
| ... | ... | @@ -32,7 +32,7 @@ class VerifyDispatcher extends KTDispatcher { |
| 32 | 32 | global $aRepoVersionProblems; |
| 33 | 33 | |
| 34 | 34 | |
| 35 | - $this->checkDirectory(""); | |
| 35 | + $this->checkDirectory(''); | |
| 36 | 36 | |
| 37 | 37 | $aDocuments =& Document::getList(); |
| 38 | 38 | foreach ($aDocuments as $oDocument) { |
| ... | ... | @@ -54,7 +54,7 @@ class VerifyDispatcher extends KTDispatcher { |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | function checkDirectory($path) { |
| 57 | - $fullpath = sprintf("%s/%s", $this->fsPath, $path); | |
| 57 | + $fullpath = sprintf('%s/%s', $this->fsPath, $path); | |
| 58 | 58 | |
| 59 | 59 | if (!is_dir($fullpath)) { |
| 60 | 60 | print "Not a directory: $fullpath\n"; |
| ... | ... | @@ -66,11 +66,11 @@ class VerifyDispatcher extends KTDispatcher { |
| 66 | 66 | } |
| 67 | 67 | while (($filename = readdir($dh)) !== false) { |
| 68 | 68 | if (in_array($filename, $this->aIgnore)) { continue; } |
| 69 | - $subrelpath = sprintf("%s/%s", $path, $filename); | |
| 70 | - if (substr($subrelpath, 0, 1) == "/") { | |
| 69 | + $subrelpath = sprintf('%s/%s', $path, $filename); | |
| 70 | + if (substr($subrelpath, 0, 1) == '/') { | |
| 71 | 71 | $subrelpath = substr($subrelpath, 1); |
| 72 | 72 | } |
| 73 | - $subfullpath = sprintf("%s/%s", $this->fsPath, $subrelpath); | |
| 73 | + $subfullpath = sprintf('%s/%s', $this->fsPath, $subrelpath); | |
| 74 | 74 | if (is_dir($subfullpath)) { |
| 75 | 75 | $this->checkDirectory($subrelpath); |
| 76 | 76 | } |
| ... | ... | @@ -95,7 +95,7 @@ class VerifyDispatcher extends KTDispatcher { |
| 95 | 95 | $aDCVs = KTDocumentContentVersion::getByDocument($oDocument); |
| 96 | 96 | foreach ($aDCVs as $oDCV) { |
| 97 | 97 | $sDocumentPath = $oDCV->getStoragePath(); |
| 98 | - $sFullPath = sprintf("%s/%s", $this->fsPath, $sDocumentPath); | |
| 98 | + $sFullPath = sprintf('%s/%s', $this->fsPath, $sDocumentPath); | |
| 99 | 99 | if (!is_file($sFullPath)) { |
| 100 | 100 | $this->aRepoDocumentProblems[] = array( |
| 101 | 101 | 'document' => $oDocument, | ... | ... |