Skip to content

Commit

Permalink
Additional fix for topic
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 23, 2017
1 parent 8ede9c2 commit 7053ac0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public_html/index.php
Expand Up @@ -404,7 +404,7 @@ function fixTopic(&$A, $tid_list)
} else {
$topic_url = '';
if (!empty($topic)) {
$topic_url = COM_buildURL($_CONF['site_url'] . '/index.php?topic=' . $topic);
$topic_url = TOPIC_getUrl($topic);
}
COM_handle404($topic_url);
}
Expand Down
4 changes: 2 additions & 2 deletions system/lib-admin.php
Expand Up @@ -1716,7 +1716,7 @@ function ADMIN_getListField_topics($fieldName, $fieldValue, $A, $icon_arr, $toke
$image_tag = '<img src="' . $imageUrl
. '" width="24" height="24" id="topic-' . $A['tid']
. '" class="admin-topic-image" alt=""' . XHTML . '>';
$url = COM_buildURL($_CONF['site_url'] . '/index.php?topic=' . $A['tid']);
$url = TOPIC_getUrl($A['tid']);
$retval = COM_createLink($image_tag, $url);
}
break;
Expand All @@ -1733,7 +1733,7 @@ function ADMIN_getListField_topics($fieldName, $fieldValue, $A, $icon_arr, $toke
$level *= 15;

$content = '<span style="margin-left:' . $level . 'px">' . $fieldValue . '</span>';
$url = COM_buildURL($_CONF['site_url'] . '/index.php?topic=' . $A['tid']);
$url = TOPIC_getUrl($A['tid']);
$retval = COM_createLink($content, $url) . $default;
break;

Expand Down
2 changes: 1 addition & 1 deletion system/lib-syndication.php
Expand Up @@ -306,7 +306,7 @@ function SYND_getFeedContentPerTopic($tid, $limit, &$link, &$update, $contentLen
}
}

$link = COM_buildURL($_CONF['site_url'] . '/index.php?topic=' . $tid);
$link = TOPIC_getUrl($tid);
$update = implode(',', $sids);

return $content;
Expand Down
4 changes: 2 additions & 2 deletions system/lib-topic.php
Expand Up @@ -1459,7 +1459,7 @@ function TOPIC_relatedTopics($type, $id, $max = 6, $tids = array())
$topicrelated->set_var('lang_filed_under', $LANG27['filed_under:']);
for ($i = 0; $i < $nrows; $i++) {
$A = DB_fetchArray($result);
$url = COM_buildURL($_CONF['site_url'] . '/index.php?topic=' . $A['tid']);
$url = TOPIC_getUrl($A['tid']);

$topicrelated->set_var('topic_url', $url);
$topicrelated->set_var('topic', $A['topic']);
Expand Down Expand Up @@ -1655,7 +1655,7 @@ function plugin_autotags_topic($op, $content = '', $autotag = '')
$result = DB_query($sql);
$A = DB_fetchArray($result);
if ($A['count'] == 1) {
$url = COM_buildUrl($_CONF['site_url'] . '/index.php?topic=' . $tid);
$url = TOPIC_getUrl($tid);
$linktext = $autotag['parm2'];
if (empty($linktext)) {
$linktext = stripslashes(DB_getItem($_TABLES['topics'], 'topic', "tid = '$tid'"));
Expand Down

0 comments on commit 7053ac0

Please sign in to comment.