From e4b525719f3e75e81ce9d3be1e8e2e9a722b0f43 Mon Sep 17 00:00:00 2001 From: conradverm Date: Tue, 13 Feb 2007 12:57:54 +0000 Subject: [PATCH] KTS-1687 "Double quote to single quote conversion" Fixed. Reviewed by: Kevin Fourie --- bin/storageverification.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/bin/storageverification.php b/bin/storageverification.php index b6f2adc..71efc1e 100755 --- a/bin/storageverification.php +++ b/bin/storageverification.php @@ -1,9 +1,9 @@ checkDirectory(""); + $this->checkDirectory(''); $aDocuments =& Document::getList(); foreach ($aDocuments as $oDocument) { @@ -54,7 +54,7 @@ class VerifyDispatcher extends KTDispatcher { } function checkDirectory($path) { - $fullpath = sprintf("%s/%s", $this->fsPath, $path); + $fullpath = sprintf('%s/%s', $this->fsPath, $path); if (!is_dir($fullpath)) { print "Not a directory: $fullpath\n"; @@ -66,11 +66,11 @@ class VerifyDispatcher extends KTDispatcher { } while (($filename = readdir($dh)) !== false) { if (in_array($filename, $this->aIgnore)) { continue; } - $subrelpath = sprintf("%s/%s", $path, $filename); - if (substr($subrelpath, 0, 1) == "/") { + $subrelpath = sprintf('%s/%s', $path, $filename); + if (substr($subrelpath, 0, 1) == '/') { $subrelpath = substr($subrelpath, 1); } - $subfullpath = sprintf("%s/%s", $this->fsPath, $subrelpath); + $subfullpath = sprintf('%s/%s', $this->fsPath, $subrelpath); if (is_dir($subfullpath)) { $this->checkDirectory($subrelpath); } @@ -95,7 +95,7 @@ class VerifyDispatcher extends KTDispatcher { $aDCVs = KTDocumentContentVersion::getByDocument($oDocument); foreach ($aDCVs as $oDCV) { $sDocumentPath = $oDCV->getStoragePath(); - $sFullPath = sprintf("%s/%s", $this->fsPath, $sDocumentPath); + $sFullPath = sprintf('%s/%s', $this->fsPath, $sDocumentPath); if (!is_file($sFullPath)) { $this->aRepoDocumentProblems[] = array( 'document' => $oDocument, -- libgit2 0.21.4