[geeklog-hg] geeklog: Needed to allow a staticpage_content autotag to return ...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Apr 27 14:39:31 EDT 2013
changeset 9056:569af9f79f11
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/569af9f79f11
user: Tom <websitemaster at cogeco.net>
date: Sat Apr 27 14:39:26 2013 -0400
description:
Needed to allow a staticpage_content autotag to return a template staticpage since this allows you to add templates to other templates. This is a fix for bug #0001468 (Changeset 9bf970e89f0b)
diffstat:
plugins/staticpages/functions.inc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 8a1404599dcd -r 569af9f79f11 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc Sat Apr 27 14:26:43 2013 -0400
+++ b/plugins/staticpages/functions.inc Sat Apr 27 14:39:26 2013 -0400
@@ -659,6 +659,11 @@
'sp_id' => $page,
'mode' => $mode
);
+ if ($mode == 'autotag') {
+ // tells service that it is okay to retrieve a template staticpage since
+ // requested by another staticpage or autotag.
+ $args['template'] = true;
+ }
$svc_msg = array();
if (PLG_invokeService('staticpages', 'get', $args, $retval, $svc_msg) == PLG_RET_OK) {
More information about the geeklog-cvs
mailing list