PHP 7.2 compat: session_cache, each (#564, #556)

This commit is contained in:
onli 2018-09-13 14:22:01 +02:00
parent 368dca4379
commit b664435ef6
3 changed files with 2 additions and 6 deletions

View File

@ -19,7 +19,7 @@ class serendipity_event_entryproperties extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_ENTRYPROPERTIES_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.41');
$propbag->add('version', '1.41.1');
$propbag->add('requirements', array(
'serendipity' => '1.6',
'smarty' => '2.6.27',
@ -488,9 +488,7 @@ class serendipity_event_entryproperties extends serendipity_event
$plugins = serendipity_plugin_api::get_event_plugins();
if (is_array($plugins)) {
// foreach() operates on copies of values, but we want to operate on references, so we use while()
@reset($plugins);
while(list($plugin, $plugin_data) = each($plugins)) {
foreach($plugins as $plugin => $plugin_data) {
if (!is_array($plugin_data['p']->markup_elements)) {
continue;
}

View File

@ -3,7 +3,6 @@
# All rights reserved. See LICENSE file for licensing details
header('Content-Type: text/xml; charset=utf-8');
session_cache_limiter('public');
@define('IN_RSS', true);
include('serendipity_config.inc.php');

View File

@ -7,7 +7,6 @@ define('IN_installer', true);
define('IN_upgrader', true);
define('IN_CSS', true);
session_cache_limiter('public');
if (!defined('S9Y_FRAMEWORK')) {
include('serendipity_config.inc.php');
}