Archived
1
0

(backport)

Fix a situation where globally stored template variables do not get preference over local (old) ones
	docs/NEWS
This commit is contained in:
Garvin Hicking
2011-11-03 17:02:45 +01:00
parent abed371df2
commit e8cacdcfdd
2 changed files with 8 additions and 1 deletions
+4
View File
@@ -28,6 +28,10 @@ class template_option {
function set_config($item, $value) {
global $serendipity;
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}options
WHERE okey = 't_" . serendipity_db_escape_string($serendipity['template']) . "'
AND name = '" . serendipity_db_escape_string($item) . "'");
if ($this->config[$item]['scope'] == 'global') {
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}options
WHERE okey = 't_global'