1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +02:00

Issue #4352 - Canonical added for page, forum and download. Replaced some e_PAGETITLE with e107::title()

This commit is contained in:
Cameron
2021-01-19 09:50:02 -08:00
parent 76144e6b4f
commit f091709847
10 changed files with 128 additions and 55 deletions

View File

@@ -90,6 +90,10 @@ if(isset($_GET['f']))
break;
}
}
else
{
e107::canonical('forum');
}

View File

@@ -41,6 +41,7 @@ if (!e107::isInstalled('forum'))
//e107::lan('forum','English_front');
e107::lan('forum', "front", true);
e107::css('forum','forum.css');
// e107::canonical('forum', 'post');

View File

@@ -56,7 +56,7 @@
echo __FILE__ . ' Line: ' . __LINE__;
exit;
}
$url = e107::url('forum', 'index', 'full');
$url = e107::url('forum', 'index', null, ['mode'=>'full']);
e107::getRedirect()->go($url);
//header('Location:'.e107::getUrl()->create('forum/forum/main', array(), 'full=1&encode=0'));
exit;
@@ -100,7 +100,7 @@
{
// header('Location:'.e107::getUrl()->create('forum/forum/main'));
$url = e107::url('forum', 'index', 'full');
$url = e107::url('forum', 'index', null, ['mode'=>'full']);
if(E107_DEBUG_LEVEL > 0)
{
@@ -118,6 +118,8 @@
}
$forumInfo = $forum->forumGet($forumId);
e107::canonical('forum', 'forum', $forumInfo);
$forumSCvars = array();
//----$threadsViewed = $forum->threadGetUserViewed();

View File

@@ -627,7 +627,7 @@ else
unset($ret);
}
e107::canonical('forum', 'topic', $thread->threadInfo);
require_once (HEADERF);