X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Fconfig.php;fp=www%2Fecrire%2Finc%2Fconfig.php;h=c8438989b2070c85d0290af6404d7df3603633ad;hp=78c34f7cba4af40517e50932e01b7c6919a4274a;hb=122c920eb07e3f665789f8734965b576e6c25515;hpb=226942065cd4f604eb464addf45a065c9e5bc916 diff --git a/www/ecrire/inc/config.php b/www/ecrire/inc/config.php index 78c34f7c..c8438989 100644 --- a/www/ecrire/inc/config.php +++ b/www/ecrire/inc/config.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -36,21 +36,22 @@ function expliquer_config($cfg){ $table = 'meta'; $casier = null; $sous_casier = array(); - $cfg = explode('/',$cfg); - // si le premier argument est vide, c'est une syntaxe /table/ ou un appel vide '' - if (!reset($cfg) AND count($cfg)>1) { - array_shift($cfg); - $table = array_shift($cfg); - if (!isset($GLOBALS[$table])) - lire_metas($table); - } - // si on a demande #CONFIG{/meta,'',0} - if (count($cfg)) - $casier = array_shift($cfg); - - if (count($cfg)) - $sous_casier = $cfg; + if (strlen($cfg)){ + $cfg = explode('/',$cfg); + // si le premier argument est vide, c'est une syntaxe /table/ ou un appel vide '' + if (!reset($cfg) AND count($cfg)>1) { + array_shift($cfg); + $table = array_shift($cfg); + if (!isset($GLOBALS[$table])) + lire_metas($table); + } + // si on a demande #CONFIG{/meta,'',0} + if (count($cfg)) + $casier = array_shift($cfg); + if (count($cfg)) + $sous_casier = $cfg; + } return array($table,$casier,$sous_casier); } @@ -379,6 +380,7 @@ function liste_metas() { return pipeline('configurer_liste_metas', array( 'nom_site' => _T('info_mon_site_spip'), + 'slogan_site' => '', 'adresse_site' => preg_replace(",/$,", "", url_de_base()), 'descriptif_site' => '', 'activer_logos' => 'oui',