mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-24 15:25:28 -04:00
Merge pull request #1003 from PrivateBin/yourls-cleanup
improve configuration wording, adjust self check
This commit is contained in:
commit
66600e5eb3
5 changed files with 29 additions and 20 deletions
|
@ -236,6 +236,14 @@ class Configuration
|
|||
if (!array_key_exists($this->_configuration['expire']['default'], $this->_configuration['expire_options'])) {
|
||||
$this->_configuration['expire']['default'] = key($this->_configuration['expire_options']);
|
||||
}
|
||||
|
||||
// ensure the basepath ends in a slash, if one is set
|
||||
if (
|
||||
strlen($this->_configuration['main']['basepath']) &&
|
||||
substr_compare($this->_configuration['main']['basepath'], '/', -1) !== 0
|
||||
) {
|
||||
$this->_configuration['main']['basepath'] .= '/';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue