(backport)
Fix a situation where globally stored template variables do not get preference over local (old) ones docs/NEWS
This commit is contained in:
@ -13,7 +13,10 @@ Version 1.6.1 ()
|
|||||||
|
|
||||||
* Fixed unneccessary preg_match notices in the statistics backend
|
* Fixed unneccessary preg_match notices in the statistics backend
|
||||||
|
|
||||||
Version 1.6 (October 27th, 2011)
|
* Fixed a possible problem where template-specific variables would
|
||||||
|
note be cleared in favor of the new global ones.
|
||||||
|
|
||||||
|
Version 1.6 (October 27th 2011)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
* Fix XSS issue in mediadatabase and karma
|
* Fix XSS issue in mediadatabase and karma
|
||||||
|
@ -28,6 +28,10 @@ class template_option {
|
|||||||
function set_config($item, $value) {
|
function set_config($item, $value) {
|
||||||
global $serendipity;
|
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') {
|
if ($this->config[$item]['scope'] == 'global') {
|
||||||
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}options
|
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}options
|
||||||
WHERE okey = 't_global'
|
WHERE okey = 't_global'
|
||||||
|
Reference in New Issue
Block a user