[geeklog-hg] geeklog: Fixed TOPIC_getTopicListSelect for multi-language conte...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed Jul 17 22:16:56 EDT 2013


changeset 9209:6d7c7c535705
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/6d7c7c535705
user: Tom <websitemaster at cogeco.net>
date: Wed Jul 17 21:45:00 2013 -0400
description:
Fixed TOPIC_getTopicListSelect for multi-language content sites to return topics of language as well as topics for all languages. (used by Directory, Search etc...)

diffstat:

 system/lib-topic.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 4bc56d1ef07c -r 6d7c7c535705 system/lib-topic.php
--- a/system/lib-topic.php	Wed Jul 17 17:46:05 2013 -0400
+++ b/system/lib-topic.php	Wed Jul 17 21:45:00 2013 -0400
@@ -480,7 +480,7 @@
                 }
                 
                 // Make sure to show topics for proper language and access level only
-                if ($archive_tid != $id && $specified_user_access > 0 && $id != $remove_id && (($lang_id == '') || ($lang_id != '' && $_TOPICS[$count_topic]['language_id'] == $lang_id))) {
+                if ($archive_tid != $id && $specified_user_access > 0 && $id != $remove_id && (($lang_id == '') || ($lang_id != '' && ($_TOPICS[$count_topic]['language_id'] == $lang_id || $_TOPICS[$count_topic]['language_id'] == '')))) {
                     $title =  $_TOPICS[$count_topic]['title'];
                     
                     $branch_spaces = "";



More information about the geeklog-cvs mailing list