patch by ian
This commit is contained in:
@ -7,6 +7,8 @@ Version 1.7 ()
|
|||||||
Version 1.6 ()
|
Version 1.6 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Fix XSS issue in mediadatabase filtering, thanks to Stefan Schurtz
|
||||||
|
|
||||||
* Fix problem with autosave plugin used in conjunction with
|
* Fix problem with autosave plugin used in conjunction with
|
||||||
entryproperties (chrisbra)
|
entryproperties (chrisbra)
|
||||||
|
|
||||||
|
@ -2075,9 +2075,10 @@ function serendipity_setFormToken($type = 'form') {
|
|||||||
* into an array.
|
* into an array.
|
||||||
*
|
*
|
||||||
* @param array Referenced variable coming from the config.inc.php file, where the config values will be stored in
|
* @param array Referenced variable coming from the config.inc.php file, where the config values will be stored in
|
||||||
|
* @param boolean Use true boolean mode in array $template_config in the config.inc.php file
|
||||||
* @return array Final return array with default values
|
* @return array Final return array with default values
|
||||||
*/
|
*/
|
||||||
function &serendipity_loadThemeOptions(&$template_config, $okey = '') {
|
function &serendipity_loadThemeOptions(&$template_config, $okey = '', $bc_bool = false) {
|
||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
if (empty($okey)) {
|
if (empty($okey)) {
|
||||||
@ -2098,7 +2099,14 @@ function &serendipity_loadThemeOptions(&$template_config, $okey = '') {
|
|||||||
$template_vars[$item['var']] = $item['default'];
|
$template_vars[$item['var']] = $item['default'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if($bc_bool) {
|
||||||
|
foreach($template_vars AS $k => $i) {
|
||||||
|
if($i == 'true' || $i == 'false') {
|
||||||
|
$template_vars[$k] = serendipity_db_bool($i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//reset smarty compiled template ?
|
||||||
|
}
|
||||||
return $template_vars;
|
return $template_vars;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2116,19 +2124,16 @@ function serendipity_loadGlobalThemeOptions(&$template_config, &$template_loaded
|
|||||||
if ($supported['navigation']) {
|
if ($supported['navigation']) {
|
||||||
$navlinks = array();
|
$navlinks = array();
|
||||||
|
|
||||||
if (!isset($template_loaded_config['amount'])) {
|
$conf_amount = array(
|
||||||
$conf_amount = array(
|
|
||||||
'var' => 'amount',
|
'var' => 'amount',
|
||||||
'name' => NAVLINK_AMOUNT,
|
'name' => NAVLINK_AMOUNT,
|
||||||
'desc' => NAVLINK_AMOUNT_BLAHBLAH,
|
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'default' => '5',
|
'default' => '5',
|
||||||
'scope' => 'global'
|
'scope' => 'global'
|
||||||
);
|
);
|
||||||
$template_config[] = $conf_amount;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($template_loaded_config['amount'])) {
|
if (!isset($template_loaded_config['amount']) || empty($template_loaded_config['amount'])) {
|
||||||
|
$template_config[] = $conf_amount;
|
||||||
$template_loaded_config['amount'] = $conf_amount['default'];
|
$template_loaded_config['amount'] = $conf_amount['default'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -960,9 +960,9 @@
|
|||||||
@define('PERMISSION_HIDDENGROUP', 'Hidden group / Non-Author');
|
@define('PERMISSION_HIDDENGROUP', 'Hidden group / Non-Author');
|
||||||
|
|
||||||
@define('SEARCH_FULLENTRY', 'Show full entry');
|
@define('SEARCH_FULLENTRY', 'Show full entry');
|
||||||
@define('NAVLINK_AMOUNT', 'Enter number of links in the navbar (needs reload of the Manage Styles page)');
|
@define('NAVLINK_AMOUNT', 'Anzahl der Links in der Navigationsleiste (Styles verwalten-Seite muss danach neu geladen werden)');
|
||||||
@define('NAV_LINK_TEXT', 'Enter the navbar link text');
|
@define('NAV_LINK_TEXT', 'Text des Navigationsleisten-Links');
|
||||||
@define('NAV_LINK_URL', 'Enter the full URL of your link');
|
@define('NAV_LINK_URL', 'URL des Navigationsleisten-Links');
|
||||||
@define('MODERATE_SELECTED_COMMENTS', 'Markierte Kommentare freischalten');
|
@define('MODERATE_SELECTED_COMMENTS', 'Markierte Kommentare freischalten');
|
||||||
@define('WEBLOG', 'Weblog');
|
@define('WEBLOG', 'Weblog');
|
||||||
@define('ACTIVE_COMMENT_SUBSCRIPTION', 'Subscribed');
|
@define('ACTIVE_COMMENT_SUBSCRIPTION', 'Subscribed');
|
||||||
|
@ -960,9 +960,9 @@
|
|||||||
@define('PERMISSION_HIDDENGROUP', 'Hidden group / Non-Author');
|
@define('PERMISSION_HIDDENGROUP', 'Hidden group / Non-Author');
|
||||||
|
|
||||||
@define('SEARCH_FULLENTRY', 'Show full entry');
|
@define('SEARCH_FULLENTRY', 'Show full entry');
|
||||||
@define('NAVLINK_AMOUNT', 'Enter number of links in the navbar (needs reload of the Manage Styles page)');
|
@define('NAVLINK_AMOUNT', 'Anzahl der Links in der Navigationsleiste (Styles verwalten-Seite muss danach neu geladen werden)');
|
||||||
@define('NAV_LINK_TEXT', 'Enter the navbar link text');
|
@define('NAV_LINK_TEXT', 'Text des Navigationsleisten-Links');
|
||||||
@define('NAV_LINK_URL', 'Enter the full URL of your link');
|
@define('NAV_LINK_URL', 'URL des Navigationsleisten-Links');
|
||||||
@define('MODERATE_SELECTED_COMMENTS', 'Markierte Kommentare freischalten');
|
@define('MODERATE_SELECTED_COMMENTS', 'Markierte Kommentare freischalten');
|
||||||
@define('WEBLOG', 'Weblog');
|
@define('WEBLOG', 'Weblog');
|
||||||
@define('ACTIVE_COMMENT_SUBSCRIPTION', 'Subscribed');
|
@define('ACTIVE_COMMENT_SUBSCRIPTION', 'Subscribed');
|
||||||
|
Reference in New Issue
Block a user