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:
plegall
2010-03-14 23:56:21 +00:00
parent 59d9c085aa
commit b95eebbe18
4 changed files with 120 additions and 0 deletions
+18
View File
@@ -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.
*