2013-03-11 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: fixed PHP notices when the "homeurl" is empty in some installations. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7834 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
00d2fde04c
commit
592fc00155
|
@ -1,3 +1,8 @@
|
|||
2013-03-11 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_config.php: fixed PHP notices when the "homeurl"
|
||||
is empty in some installations.
|
||||
|
||||
2013-03-11 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_graph.php: change the text of legends of "Data"
|
||||
|
|
|
@ -536,8 +536,10 @@ function config_process_config () {
|
|||
config_update_value ('language', 'en');
|
||||
}
|
||||
|
||||
if (isset ($config['homeurl']) && $config['homeurl'][0] != '/') {
|
||||
$config['homeurl'] = '/'.$config['homeurl'];
|
||||
if (isset ($config['homeurl']) && (strlen($config['homeurl']) > 0)) {
|
||||
if ($config['homeurl'][0] != '/') {
|
||||
$config['homeurl'] = '/'.$config['homeurl'];
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset ($config['date_format'])) {
|
||||
|
|
Loading…
Reference in New Issue