Avoid warning
This commit is contained in:
parent
217a8ce6ee
commit
1fa82581b6
|
@ -544,6 +544,8 @@ function upgrade_bool_message($bbcode = false) {
|
|||
* @return string Path to the file or empty string if the file isn't found
|
||||
*/
|
||||
function theme_include($file, $root = '') {
|
||||
$file = basename($file);
|
||||
|
||||
// Make sure $root ends with a slash / if it's not blank
|
||||
if ($root !== '' && $root[strlen($root)-1] !== '/') {
|
||||
$root = $root . '/';
|
||||
|
|
Loading…
Reference in New Issue
Block a user