deletion of $conf['site_url'] and $conf['forum_url'] and all their usage
(thus avoiding the usage of $conf in *.lang.php) git-svn-id: http://piwigo.org/svn/trunk@516 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
1f8b6b0790
commit
b220e5db42
6 changed files with 6 additions and 10 deletions
|
|
@ -99,7 +99,8 @@ $result = mysql_query('SELECT param,value FROM '.CONFIG_TABLE);
|
|||
while ($row = mysql_fetch_array($result))
|
||||
{
|
||||
$conf[$row['param']] = $row['value'];
|
||||
|
||||
// if the parameter is present in $_POST array (if a form is submited), we
|
||||
// override it with the submited value
|
||||
if (isset($_POST[$row['param']]))
|
||||
{
|
||||
$conf[$row['param']] = $_POST[$row['param']];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue