mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* fix for php versions under 5.5 where empty() function supported only variables
This commit is contained in:
parent
6d81a29bb6
commit
3fef1a6eec
@ -42,13 +42,14 @@ if(file_exists(BASE . 'install') && (!isset($config['installed']) || !$config['i
|
||||
require_once(SYSTEM . 'functions.php');
|
||||
|
||||
$uri = $_SERVER['REQUEST_URI'];
|
||||
if(!empty(BASE_DIR))
|
||||
|
||||
$tmp = BASE_DIR;
|
||||
if(!empty($tmp))
|
||||
$uri = str_replace(BASE_DIR . '/', '', $uri);
|
||||
else
|
||||
$uri = str_replace_first('/', '', $uri);
|
||||
|
||||
$uri = str_replace(array('index.php/', '?'), '', $uri);
|
||||
$uri = strtolower($uri);
|
||||
$uri = strtolower(str_replace(array('index.php/', '?'), '', $uri));
|
||||
|
||||
$found = false;
|
||||
if(empty($uri) || isset($_REQUEST['template'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user