[geeklog-hg] geeklog: Delete old Topic Assignments if staticpage id changes (...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon May 14 10:19:08 EDT 2012
changeset 8699:d96d15e06d79
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/d96d15e06d79
user: Tom <websitemaster at cogeco.net>
date: Mon May 14 10:18:32 2012 -0400
description:
Delete old Topic Assignments if staticpage id changes (since new ones get created)
diffstat:
plugins/staticpages/services.inc.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r fe119ddd8791 -r d96d15e06d79 plugins/staticpages/services.inc.php
--- a/plugins/staticpages/services.inc.php Mon May 14 10:11:54 2012 -0400
+++ b/plugins/staticpages/services.inc.php Mon May 14 10:18:32 2012 -0400
@@ -480,6 +480,9 @@
$result = DB_query($sql);
}
+ // Delete Topic Assignments for this old staticpage since we just created new ones
+ TOPIC_deleteTopicAssignments('staticpages', $sp_old_id);
+
DB_delete($_TABLES['staticpage'], 'sp_id', $sp_old_id);
}
More information about the geeklog-cvs
mailing list