Fix INCLUDE_ANY being a deprecated undefined constant in PHP > 7.1

This commit is contained in:
onli 2019-04-27 11:54:17 +02:00
parent 2e19e05e37
commit 9ef871974c
16 changed files with 65 additions and 63 deletions

View file

@ -72,7 +72,7 @@ class serendipity_event_aggregator extends serendipity_event {
'php' => '4.1.0' 'php' => '4.1.0'
)); ));
$propbag->add('version', '0.34'); $propbag->add('version', '0.34.1');
$propbag->add('author', 'Evan Nemerson, Garvin Hicking, Kristian Koehntopp, Thomas Schulz, Claus Schmidt'); $propbag->add('author', 'Evan Nemerson, Garvin Hicking, Kristian Koehntopp, Thomas Schulz, Claus Schmidt');
$propbag->add('stackable', false); $propbag->add('stackable', false);
$propbag->add('event_hooks', array( $propbag->add('event_hooks', array(
@ -1715,10 +1715,10 @@ class serendipity_event_aggregator extends serendipity_event {
if (!$tfile || $tfile == $filename) { if (!$tfile || $tfile == $filename) {
$tfile = dirname(__FILE__) . '/' . $filename; $tfile = dirname(__FILE__) . '/' . $filename;
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
return $content; return $content;
} }
@ -1820,4 +1820,4 @@ EOF;
} }
} }
/* vim: set sts=4 ts=4 expandtab : */ /* vim: set sts=4 ts=4 expandtab : */

View file

@ -94,7 +94,7 @@ class serendipity_event_customarchive extends serendipity_event {
$propbag->add('event_hooks', array('entries_header' => true, 'entry_display' => true, 'genpage' => true)); $propbag->add('event_hooks', array('entries_header' => true, 'entry_display' => true, 'genpage' => true));
$propbag->add('configuration', array('permalink', 'pagetitle', 'articleformat')); $propbag->add('configuration', array('permalink', 'pagetitle', 'articleformat'));
$propbag->add('author', 'Garvin Hicking'); $propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.12.1'); $propbag->add('version', '1.12.2');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '0.8', 'serendipity' => '0.8',
'smarty' => '2.6.7', 'smarty' => '2.6.7',
@ -576,10 +576,10 @@ class serendipity_event_customarchive extends serendipity_event {
if (!$tfile || $tfile == $filename) { if (!$tfile || $tfile == $filename) {
$tfile = dirname(__FILE__) . '/' . $filename; $tfile = dirname(__FILE__) . '/' . $filename;
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
$serendipity['smarty']->assign('ENTRIES', 'xxx'); $serendipity['smarty']->assign('ENTRIES', 'xxx');
@ -648,4 +648,4 @@ class serendipity_event_customarchive extends serendipity_event {
} }
} }
} }
/* vim: set sts=4 ts=4 expandtab : */ /* vim: set sts=4 ts=4 expandtab : */

View file

@ -53,7 +53,7 @@ class serendipity_event_forum extends serendipity_event {
'php' => '4.1.0' 'php' => '4.1.0'
)); ));
$propbag->add('version', '0.38.3'); $propbag->add('version', '0.38.4');
$propbag->add('author', 'Alexander \'dma147\' Mieland, http://blog.linux-stats.org, dma147@linux-stats.org'); $propbag->add('author', 'Alexander \'dma147\' Mieland, http://blog.linux-stats.org, dma147@linux-stats.org');
$propbag->add('stackable', false); $propbag->add('stackable', false);
$propbag->add('event_hooks', array( $propbag->add('event_hooks', array(
@ -1934,10 +1934,10 @@ class serendipity_event_forum extends serendipity_event {
if (!$tfile || $tfile == $filename) { if (!$tfile || $tfile == $filename) {
$tfile = dirname(__FILE__) . '/' . $filename; $tfile = dirname(__FILE__) . '/' . $filename;
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
echo $content; echo $content;
} }

View file

@ -59,7 +59,7 @@ class serendipity_event_microformats extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_MICROFORMATS_DESC); $propbag->add('description', PLUGIN_EVENT_MICROFORMATS_DESC);
$propbag->add('stackable', false); $propbag->add('stackable', false);
$propbag->add('author', 'Matthias Gutjahr'); $propbag->add('author', 'Matthias Gutjahr');
$propbag->add('version', '0.46.1'); $propbag->add('version', '0.46.2');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '0.9', 'serendipity' => '0.9',
'smarty' => '2.6.7', 'smarty' => '2.6.7',

View file

@ -107,8 +107,8 @@ echo '</pre>';*/
if (!$tfile || $tfile == $filename) { if (!$tfile || $tfile == $filename) {
$tfile = dirname(__FILE__).'/'.$filename; $tfile = dirname(__FILE__).'/'.$filename;
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
switch ($params['mf_type']) { switch ($params['mf_type']) {
case 'hReview': case 'hReview':
$serendipity['smarty']->assign( $serendipity['smarty']->assign(
@ -158,7 +158,7 @@ echo '</pre>';*/
break; break;
} }
$content = $serendipity['smarty']->fetch('file:'.$tfile); $content = $serendipity['smarty']->fetch('file:'.$tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
if (!empty($params['escaped'])) { if (!empty($params['escaped'])) {
echo serendipity_utf8_encode((function_exists('serendipity_specialchars') ? serendipity_specialchars($content) : htmlspecialchars($content, ENT_COMPAT, LANG_CHARSET))); echo serendipity_utf8_encode((function_exists('serendipity_specialchars') ? serendipity_specialchars($content) : htmlspecialchars($content, ENT_COMPAT, LANG_CHARSET)));

View file

@ -56,7 +56,7 @@ class serendipity_event_mymood extends serendipity_event {
'php' => '4.1.0' 'php' => '4.1.0'
)); ));
$propbag->add('version', '0.12.0'); $propbag->add('version', '0.12.1');
$propbag->add('author', 'Brett Profitt, Matthias Mees'); $propbag->add('author', 'Brett Profitt, Matthias Mees');
$propbag->add('stackable', false); $propbag->add('stackable', false);
$propbag->add('event_hooks', array( $propbag->add('event_hooks', array(
@ -552,14 +552,14 @@ class serendipity_event_mymood extends serendipity_event {
if (!$tfile) { if (!$tfile) {
$tfile = dirname(__FILE__) . '/plugin_mymood.tpl'; $tfile = dirname(__FILE__) . '/plugin_mymood.tpl';
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$serendipity['smarty']->assign('plugin_mymood_intro', $this->get_config('intro', '')); $serendipity['smarty']->assign('plugin_mymood_intro', $this->get_config('intro', ''));
$serendipity['smarty']->assign('plugin_mymood_location', $this->get_config('location', 'body')); $serendipity['smarty']->assign('plugin_mymood_location', $this->get_config('location', 'body'));
$serendipity['smarty']->assign('plugin_mymood_mood_list', $formatted_moods); $serendipity['smarty']->assign('plugin_mymood_mood_list', $formatted_moods);
$serendipity['smarty']->assign('plugin_mymood_outro', $this->get_config('outro', '')); $serendipity['smarty']->assign('plugin_mymood_outro', $this->get_config('outro', ''));
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
return $content; return $content;
} }

View file

@ -16,8 +16,8 @@ class OEmbedTemplater {
$tfile = dirname(__FILE__) . '/' . $filename; $tfile = dirname(__FILE__) . '/' . $filename;
} }
$inclusion = $serendipity['smarty']->security_settings[@INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[@INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
if (version_compare($serendipity['version'], '1.7-alpha1')>=0) { if (version_compare($serendipity['version'], '1.7-alpha1')>=0) {
$serendipity['smarty']->disableSecurity(); $serendipity['smarty']->disableSecurity();
@ -31,8 +31,8 @@ class OEmbedTemplater {
// be smarty 3 compat including the serendipity_smarty class wrappers ->fetch and ->display methods and remove changed parameter number 4 // be smarty 3 compat including the serendipity_smarty class wrappers ->fetch and ->display methods and remove changed parameter number 4
$content = @$serendipity['smarty']->fetch('file:'. $tfile);//, false $content = @$serendipity['smarty']->fetch('file:'. $tfile);//, false
$serendipity['smarty']->security_settings[@INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
return $content; return $content;
} }
} }

View file

@ -30,7 +30,7 @@ class serendipity_event_oembed extends serendipity_event
$propbag->add('description', PLUGIN_EVENT_OEMBED_DESC); $propbag->add('description', PLUGIN_EVENT_OEMBED_DESC);
$propbag->add('stackable', false); $propbag->add('stackable', false);
$propbag->add('author', 'Grischa Brockhaus'); $propbag->add('author', 'Grischa Brockhaus');
$propbag->add('version', '1.15'); $propbag->add('version', '1.15.1');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '0.8', 'serendipity' => '0.8',
'smarty' => '2.6.7', 'smarty' => '2.6.7',

View file

@ -30,7 +30,7 @@ class serendipity_event_relatedlinks extends serendipity_event
'smarty' => '2.6.7', 'smarty' => '2.6.7',
'php' => '4.1.0' 'php' => '4.1.0'
)); ));
$propbag->add('version', '1.8.1'); $propbag->add('version', '1.8.2');
$propbag->add('event_hooks', array( $propbag->add('event_hooks', array(
'frontend_display:html:per_entry' => true, 'frontend_display:html:per_entry' => true,
'backend_publish' => true, 'backend_publish' => true,
@ -175,14 +175,14 @@ class serendipity_event_relatedlinks extends serendipity_event
if (!$tfile) { if (!$tfile) {
$tfile = dirname(__FILE__) . '/plugin_relatedlinks.tpl'; $tfile = dirname(__FILE__) . '/plugin_relatedlinks.tpl';
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
if (count($html_links) < 1) { if (count($html_links) < 1) {
$content = true; $content = true;
} }
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
if (!empty($content)) { if (!empty($content)) {
$q = "DELETE FROM {$serendipity['dbPrefix']}entryproperties WHERE entryid = ". (int)$eventData['id'] . " AND (property = 'relatedentries' OR property = 'post_relatedentries')"; $q = "DELETE FROM {$serendipity['dbPrefix']}entryproperties WHERE entryid = ". (int)$eventData['id'] . " AND (property = 'relatedentries' OR property = 'post_relatedentries')";
@ -238,4 +238,4 @@ class serendipity_event_relatedlinks extends serendipity_event
} }
/* vim: set sts=4 ts=4 expandtab : */ /* vim: set sts=4 ts=4 expandtab : */
?> ?>

View file

@ -1,3 +1,5 @@
4.15.1: Fix deprecated use of undefined constant INCLUDE_ANY
4.15: Override content message when 404 view is taken over by this plugin 4.15: Override content message when 404 view is taken over by this plugin
4.14: Iconfont a11y fix (yellowled) 4.14: Iconfont a11y fix (yellowled)
@ -272,4 +274,4 @@
2.12: (Falk Doering) 2.12: (Falk Doering)
* Support display of last change and page back/next navigation * Support display of last change and page back/next navigation
* Support display of "Edit this page" link * Support display of "Edit this page" link

View file

@ -90,7 +90,7 @@ class serendipity_event_staticpage extends serendipity_event
$propbag->add('page_configuration', $this->config); $propbag->add('page_configuration', $this->config);
$propbag->add('type_configuration', $this->config_types); $propbag->add('type_configuration', $this->config_types);
$propbag->add('author', 'Marco Rinck, Garvin Hicking, David Rolston, Falk Doering, Stephan Manske, Pascal Uhlmann, Ian, Don Chambers'); $propbag->add('author', 'Marco Rinck, Garvin Hicking, David Rolston, Falk Doering, Stephan Manske, Pascal Uhlmann, Ian, Don Chambers');
$propbag->add('version', '4.15'); $propbag->add('version', '4.15.1');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '2.0', 'serendipity' => '2.0',
'smarty' => '2.6.7', 'smarty' => '2.6.7',
@ -1287,10 +1287,10 @@ class serendipity_event_staticpage extends serendipity_event
if (!$tfile || $tfile == $filename) { if (!$tfile || $tfile == $filename) {
$tfile = dirname(__FILE__) . '/' . $filename; $tfile = dirname(__FILE__) . '/' . $filename;
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
return $content; return $content;
} }
@ -2557,8 +2557,8 @@ foreach($select AS $select_value => $select_desc) {
$tfile = dirname(__FILE__) . '/backend_templates/' . $filename; $tfile = dirname(__FILE__) . '/backend_templates/' . $filename;
} }
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$serendipity['smarty']->assign( $serendipity['smarty']->assign(
array( array(
'showmeta' => serendipity_db_bool($this->get_config('showmeta')), 'showmeta' => serendipity_db_bool($this->get_config('showmeta')),
@ -2570,7 +2570,7 @@ foreach($select AS $select_value => $select_desc) {
) )
); );
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
echo $content; echo $content;
return true; return true;
@ -3227,4 +3227,4 @@ foreach($select AS $select_value => $select_desc) {
} }
/* vim: set sts=4 ts=4 expandtab : */ /* vim: set sts=4 ts=4 expandtab : */

View file

@ -31,7 +31,7 @@ class serendipity_event_suggest extends serendipity_event {
)); ));
$propbag->add('configuration', array('permalink', 'pagetitle', 'authorid', 'email')); $propbag->add('configuration', array('permalink', 'pagetitle', 'authorid', 'email'));
$propbag->add('author', 'Garvin Hicking'); $propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '0.11.2'); $propbag->add('version', '0.11.3');
$propbag->add('groups', array('FRONTEND_FEATURES')); $propbag->add('groups', array('FRONTEND_FEATURES'));
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '0.9', 'serendipity' => '0.9',
@ -310,10 +310,10 @@ class serendipity_event_suggest extends serendipity_event {
if (!$tfile) { if (!$tfile) {
$tfile = dirname(__FILE__) . '/plugin_suggest.tpl'; $tfile = dirname(__FILE__) . '/plugin_suggest.tpl';
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
echo $content; echo $content;
} }
@ -443,4 +443,4 @@ class serendipity_event_suggest extends serendipity_event {
} }
} }
/* vim: set sts=4 ts=4 expandtab : */ /* vim: set sts=4 ts=4 expandtab : */

View file

@ -97,7 +97,7 @@ class serendipity_event_userprofiles extends serendipity_event {
'genpage' => true 'genpage' => true
)); ));
$propbag->add('author', 'Garvin Hicking, Falk Doering'); $propbag->add('author', 'Garvin Hicking, Falk Doering');
$propbag->add('version', '0.31'); $propbag->add('version', '0.31.1');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '2.0', 'serendipity' => '2.0',
'smarty' => '2.6.7', 'smarty' => '2.6.7',
@ -309,10 +309,10 @@ class serendipity_event_userprofiles extends serendipity_event {
if (!$tfile) { if (!$tfile) {
$tfile = dirname(__FILE__) . '/plugin_groupmembers.tpl'; $tfile = dirname(__FILE__) . '/plugin_groupmembers.tpl';
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
echo $content; echo $content;
} }
@ -544,8 +544,8 @@ class serendipity_event_userprofiles extends serendipity_event {
if (!$tfile) { if (!$tfile) {
$tfile = dirname(__FILE__) . '/plugin_userprofile.tpl'; $tfile = dirname(__FILE__) . '/plugin_userprofile.tpl';
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$profile = $this->getConfigVars($serendipity['GET']['viewAuthor']); $profile = $this->getConfigVars($serendipity['GET']['viewAuthor']);
$local_properties =& $this->getLocalProperties(); $local_properties =& $this->getLocalProperties();
foreach($local_properties as $property => $info) { foreach($local_properties as $property => $info) {
@ -565,7 +565,7 @@ class serendipity_event_userprofiles extends serendipity_event {
$serendipity['smarty']->assign('userProfileTitle', PLUGIN_EVENT_USERPROFILES_SHOW); $serendipity['smarty']->assign('userProfileTitle', PLUGIN_EVENT_USERPROFILES_SHOW);
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
echo $content; echo $content;
} }
@ -814,4 +814,4 @@ class serendipity_event_userprofiles extends serendipity_event {
} }
} }
/* vim: set sts=4 ts=4 expandtab : */ /* vim: set sts=4 ts=4 expandtab : */

View file

@ -289,8 +289,8 @@ class serendipity_common_adduser {
if (!$tfile || $tfile == $filename) { if (!$tfile || $tfile == $filename) {
$tfile = dirname(__FILE__) . '/' . $filename; $tfile = dirname(__FILE__) . '/' . $filename;
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$serendipity['smarty']->display($tfile); $serendipity['smarty']->display($tfile);
} }
} }

View file

@ -12,7 +12,7 @@ class serendipity_event_adduser extends serendipity_event
$propbag->add('description', PLUGIN_ADDUSER_DESC); $propbag->add('description', PLUGIN_ADDUSER_DESC);
$propbag->add('stackable', false); $propbag->add('stackable', false);
$propbag->add('author', 'Garvin Hicking'); $propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '2.38.2'); $propbag->add('version', '2.38.3');
$propbag->add('requirements', array( $propbag->add('requirements', array(
'serendipity' => '0.8', 'serendipity' => '0.8',
'smarty' => '2.6.7', 'smarty' => '2.6.7',
@ -209,8 +209,8 @@ class serendipity_event_adduser extends serendipity_event
if (!$tfile || $tfile == $filename) { if (!$tfile || $tfile == $filename) {
$tfile = dirname(__FILE__) . '/' . $filename; $tfile = dirname(__FILE__) . '/' . $filename;
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$serendipity['smarty']->display($tfile); $serendipity['smarty']->display($tfile);
break; break;

View file

@ -28,7 +28,7 @@ class serendipity_plugin_showentries extends serendipity_plugin {
'php' => '4.1.0' 'php' => '4.1.0'
)); ));
$propbag->add('author', 'Garvin Hicking'); $propbag->add('author', 'Garvin Hicking');
$propbag->add('version', '1.8.1'); $propbag->add('version', '1.8.2');
$propbag->add('stackable', true); $propbag->add('stackable', true);
$propbag->add('groups', array('FRONTEND_VIEWS')); $propbag->add('groups', array('FRONTEND_VIEWS'));
} }
@ -156,10 +156,10 @@ class serendipity_plugin_showentries extends serendipity_plugin {
if (!$tfile) { if (!$tfile) {
$tfile = dirname(__FILE__) . '/plugin_showentries.tpl'; $tfile = dirname(__FILE__) . '/plugin_showentries.tpl';
} }
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY]; $inclusion = $serendipity['smarty']->security_settings['INCLUDE_ANY'];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile); $content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion; $serendipity['smarty']->security_settings['INCLUDE_ANY'] = $inclusion;
echo $content; echo $content;