mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
feature 1505: when there is no photo yet in the gallery, displays a big and
obvious message, guiding to the Administration>Images>Add page. git-svn-id: http://piwigo.org/svn/trunk@5138 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1060,6 +1060,24 @@ SELECT param, value
|
||||
}
|
||||
}
|
||||
|
||||
function conf_update_param($param, $value)
|
||||
{
|
||||
$query = '
|
||||
DELETE
|
||||
FROM '.CONFIG_TABLE.'
|
||||
WHERE param = "'.$param.'"
|
||||
;';
|
||||
pwg_query($query);
|
||||
|
||||
$query = '
|
||||
INSERT
|
||||
INTO '.CONFIG_TABLE.'
|
||||
SET param = "'.$param.'"
|
||||
, value = "'.$value.'"
|
||||
;';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepends and appends a string at each value of the given array.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user