mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
do not add dir separator to contentDir if it is empty
This commit is contained in:
parent
3697ab0da1
commit
1339c36d67
|
@ -434,7 +434,7 @@ class Settings { /* {{{ */
|
|||
$this->_rootDir = strval($tab["rootDir"]);
|
||||
$this->_httpRoot = strval($tab["httpRoot"]);
|
||||
$this->_contentDir = strval($tab["contentDir"]);
|
||||
if(substr($this->_contentDir, -1, 1) != DIRECTORY_SEPARATOR)
|
||||
if($this->_contentDir && substr($this->_contentDir, -1, 1) != DIRECTORY_SEPARATOR)
|
||||
$this->_contentDir .= DIRECTORY_SEPARATOR;
|
||||
$this->_cacheDir = strval($tab["cacheDir"]);
|
||||
$this->_stagingDir = strval($tab["stagingDir"]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user