mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
fixed minor error
This commit is contained in:
parent
07e5274d0d
commit
c309ec3ed4
@ -133,15 +133,17 @@ if (!defined('METACONSOLE')) {
|
||||
$config["error"] = "homeurl_bad_defined";
|
||||
return;
|
||||
}
|
||||
else{
|
||||
$url = preg_match('/(\/.+)\/.*\/*/', $_SERVER['REQUEST_URI'], $match);
|
||||
if($config["homeurl"] != $match[1]){
|
||||
$config["homeurl"] = $match[1];
|
||||
$config["homeurl_static"] = $match[1];
|
||||
$config["error"] = "homeurl_bad_defined";
|
||||
return;
|
||||
}
|
||||
}
|
||||
//else{
|
||||
//$url = preg_match('/(\/.+)\/.*\/*/', $_SERVER['REQUEST_URI'], $match);
|
||||
//html_debug_print($config["homeurl"], true);
|
||||
//html_debug_print($match[1], true);
|
||||
//if($config["homeurl"] != $match[1]){
|
||||
// $config["homeurl"] = $match[1];
|
||||
// $config["homeurl_static"] = $match[1];
|
||||
// $config["error"] = "homeurl_bad_defined";
|
||||
// return;
|
||||
//}
|
||||
//}
|
||||
}
|
||||
if (!isset($config["homeurl_static"])) {
|
||||
$config["homeurl_static"] = $config["homeurl"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user