diff options
author | plegall <plg@piwigo.org> | 2010-03-14 23:56:21 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-14 23:56:21 +0000 |
commit | b95eebbe1809fa74e333df85549c18d77fff7811 (patch) | |
tree | e4e5e2923f4ea6080871927c9aa462ff62e04a8a /include/functions.inc.php | |
parent | 59d9c085aa6a86961f53055f7a1936a16f576712 (diff) |
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
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 7eee41d57..18bad9d0e 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -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. * |