Skip to content

Commit

Permalink
Merge pull request #338 from demeritcowboy/namespace
Browse files Browse the repository at this point in the history
dev/drupal#169 - Fix namespacing in kcfinder
  • Loading branch information
colemanw committed Jan 9, 2022
2 parents 46e8efe + 091f1a9 commit ac84a47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions kcfinder/core/class/browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ protected function act_downloadDir() {
$this->errorMsg("Unknown error.");
$filename = basename($dir) . ".zip";
do {
$file = md5(time() . CRM_Core_Config::singleton()->userSystem->getSessionId());
$file = md5(time() . \CRM_Core_Config::singleton()->userSystem->getSessionId());
$file = "{$this->config['uploadDir']}/$file.zip";
} while (file_exists($file));
new zipFolder($file, $dir);
Expand Down Expand Up @@ -559,7 +559,7 @@ protected function act_downloadSelected() {
}

do {
$file = md5(time() . CRM_Core_Config::singleton()->userSystem->getSessionId());
$file = md5(time() . \CRM_Core_Config::singleton()->userSystem->getSessionId());
$file = "{$this->config['uploadDir']}/$file.zip";
} while (file_exists($file));

Expand Down Expand Up @@ -601,7 +601,7 @@ protected function act_downloadClipboard() {
}

do {
$file = md5(time() . CRM_Core_Config::singleton()->userSystem->getSessionId());
$file = md5(time() . \CRM_Core_Config::singleton()->userSystem->getSessionId());
$file = "{$this->config['uploadDir']}/$file.zip";
} while (file_exists($file));

Expand Down
2 changes: 1 addition & 1 deletion kcfinder/core/class/uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function __construct() {
require "conf/config.php";

// SETTING UP SESSION
if (!CRM_Core_Config::singleton()->userSystem->getSessionId()) {
if (!\CRM_Core_Config::singleton()->userSystem->getSessionId()) {
if (isset($_CONFIG['_sessionLifetime']))
ini_set('session.gc_maxlifetime', $_CONFIG['_sessionLifetime'] * 60);
if (isset($_CONFIG['_sessionDir']))
Expand Down

0 comments on commit ac84a47

Please sign in to comment.