1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 14:44:29 +02:00

Issue #2610 Remove legacy SEF URL from forum plugin.

This commit is contained in:
Cameron
2017-05-02 13:47:18 -07:00
parent 5e53dcb991
commit aeb4f925d2
5 changed files with 13 additions and 351 deletions

View File

@@ -646,9 +646,12 @@ function showmodoptions()
$forum_id = $thread->threadInfo['forum_id'];
if ($postInfo['thread_start'])
{
$type = 'Thread';
// XXX _URL_ thread name?
$ret = "<form method='post' action='" . $e107->url->create('forum/thread/view', array('id' => $postInfo['post_thread']))."' id='frmMod_{$postInfo['post_forum']}_{$postInfo['post_thread']}'>";
// $formUrl = $e107->url->create('forum/thread/view', array('id' => $postInfo['post_thread']));
$formUrl = e_REQUEST_URI; // e107::url('forum', 'topic',
$ret = "<form method='post' action='" . $formUrl."' id='frmMod_{$postInfo['post_forum']}_{$postInfo['post_thread']}'>";
$delId = $postInfo['post_thread'];
}
else
@@ -674,7 +677,9 @@ function showmodoptions()
}
else
{
$ret .= "<a href='" . $e107->url->create('forum/thread/split', array('id' => $postInfo['post_id']))."'>" . defset('IMAGE_admin_split') . '</a>';
// $splitUrl = $e107->url->create('forum/thread/split', array('id' => $postInfo['post_id']));
$splitUrl = e107::url('forum','split', array('thread_id'=>$postInfo['post_thread'], 'post_id'=>$postInfo['post_id']));
$ret .= "<a href='" .$splitUrl ."'>" . defset('IMAGE_admin_split') . '</a>';
}
$ret .= "