[geeklog-cvs] geeklog: Implemented PLG_getCommentUrlId for the Static Pages pl...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jun 13 15:33:17 EDT 2009


details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/312720d3f539
changeset: 7116:312720d3f539
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jun 13 21:28:07 2009 +0200
description:
Implemented PLG_getCommentUrlId for the Static Pages plugin

diffstat:

plugins/staticpages/functions.inc | 21 +++++++++++++++++++++
public_html/docs/history | 1 +
2 files changed, 22 insertions(+), 0 deletions(-)

diffs (40 lines):

diff -r f6f31488be02 -r 312720d3f539 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc Sat Jun 13 21:18:12 2009 +0200
+++ b/plugins/staticpages/functions.inc Sat Jun 13 21:28:07 2009 +0200
@@ -1368,4 +1368,25 @@
return $retval;
}

+/**
+* Provide URL and ID for the link to a comment's parent
+*
+* NOTE: The Plugin API does not support $_CONF['url_rewrite'] here,
+* so we'll end up with a non-rewritten URL ...
+*
+* @return array array consisting of the base URL and the ID name
+*
+*/
+function plugin_getcommenturlid_staticpages()
+{
+ global $_CONF;
+
+ $tmp = array(
+ $_CONF['site_url'] . '/staticpages/index.php',
+ 'page'
+ );
+
+ return $tmp;
+}
+
?>
diff -r f6f31488be02 -r 312720d3f539 public_html/docs/history
--- a/public_html/docs/history Sat Jun 13 21:18:12 2009 +0200
+++ b/public_html/docs/history Sat Jun 13 21:28:07 2009 +0200
@@ -42,6 +42,7 @@

Static Pages plugin
-------------------
+- Implemented PLG_getCommentUrlId [Dirk]
- Update static pages comments when changing a page's ID so the comments don't
become orphaned (part of bug #0000901) [Dirk]
- When deleting a static page, also delete its comments (bug #0000901) [Dirk]



More information about the geeklog-cvs mailing list