[geeklog-hg] geeklog: Removed topics block cache on article submission only i...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jul 6 07:59:25 EDT 2013
changeset 9168:00b585a59e66
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/00b585a59e66
user: Tom <websitemaster at cogeco.net>
date: Sat Jul 06 07:58:53 2013 -0400
description:
Removed topics block cache on article submission only if topic block shows submission count.
diffstat:
system/lib-template.php | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 97a355431797 -r 00b585a59e66 system/lib-template.php
--- a/system/lib-template.php Fri Jul 05 23:24:45 2013 -0400
+++ b/system/lib-template.php Sat Jul 06 07:58:53 2013 -0400
@@ -163,8 +163,10 @@
*/
function plugin_submissionsaved_template($type)
{
- if ($type == 'article' OR $type == 'story') {
- // Just call item delete since same functionality
+ global $_CONF;
+
+ if (($type == 'article' OR $type == 'story') AND $_CONF['showsubmissioncount']) {
+ // Just call item delete since same functionality and doesn't need id
plugin_itemdeleted_template('', $type);
}
}
@@ -177,8 +179,10 @@
*/
function plugin_submissiondeleted_template($type)
{
- if ($type == 'article' OR $type == 'story') {
- // Just call item delete since same functionality
+ global $_CONF;
+
+ if (($type == 'article' OR $type == 'story') AND $_CONF['showsubmissioncount']) {
+ // Just call item delete since same functionality and doesn't need id
plugin_itemdeleted_template('', $type);
}
}
More information about the geeklog-cvs
mailing list