[geeklog-cvs] geeklog: Fixed PHP 4 compatibility problem in static pages plugi...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Jun 13 04:06:00 EDT 2011
changeset 8312:3f291dbe56aa
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/3f291dbe56aa
user: Dirk Haun <dirk at haun-online.de>
date: Mon Jun 13 09:55:12 2011 +0200
description:
Fixed PHP 4 compatibility problem in static pages plugin (bug #0001330, patch provided by mystral-kk)
diffstat:
plugins/staticpages/services.inc.php | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diffs (34 lines):
diff -r 829fdfe2c232 -r 3f291dbe56aa plugins/staticpages/services.inc.php
--- a/plugins/staticpages/services.inc.php Sun Feb 20 09:39:11 2011 +0100
+++ b/plugins/staticpages/services.inc.php Mon Jun 13 09:55:12 2011 +0200
@@ -681,11 +681,6 @@
$value = $variable->data;
$tag[$key] = $value;
}
-
- // Loop through variables to replace any autotags first
- foreach ($tag as &$value) {
- $value = PLG_replaceTags($value);
- }
} else {
// For PHP 4
$xmlObject = new DOMDocument;
@@ -704,12 +699,13 @@
}
}
}
- // Loop through variables to replace any autotags first
- foreach ($tag as $key => $value) {
- $tag[$key] = PLG_replaceTags($tag[$key]);
- }
}
-
+
+ // Loop through variables to replace any autotags first
+ foreach ($tag as $key => $value) {
+ $tag[$key] = PLG_replaceTags($tag[$key]);
+ }
+
$args = array(
'sp_id' => $output['template_id'],
'mode' => $mode,
More information about the geeklog-cvs
mailing list