Skip to content

Commit

Permalink
CRM-19303:
Browse files Browse the repository at this point in the history
Final Style Changes.  Other warnings not in my modifications. Line# 40-51
  • Loading branch information
Milton Zurita authored and seamuslee001 committed Nov 17, 2016
1 parent 0fb2ca0 commit 43d8498
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CRM/Utils/System/DrupalBase.php
Expand Up @@ -623,18 +623,18 @@ private function getUrl($baseUrl, $folder) {
* @param $default string
*/
public function checkMultisite($root, $baseUrl, $default = "default") {
if(isset($this->filesUrl))
if (isset($this->filesUrl))
return $this->filesUrl;

$basepath = $this->checkBasePath($root);
$correct = null;
$correct = NULL;
if ($this->checkFilesExists($root, $default)) {
$correct = $default;
}
else {
//Check for any other directories if default doesn't exist.
$folders = scandir($basepath . 'sites/');
foreach($folders as $folder) {
foreach ($folders as $folder) {
//Ignore hidden directories/files...
if (strpos($folder, '.') === 0 || $folder == 'all')
continue;
Expand All @@ -650,3 +650,4 @@ public function checkMultisite($root, $baseUrl, $default = "default") {
}
}
}
}

0 comments on commit 43d8498

Please sign in to comment.