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

Issue #927 - e_frontpage.php upgraded to v2.x specifications.

This commit is contained in:
Cameron
2015-03-15 13:27:37 -07:00
parent 15398155b2
commit 52845adf1b
4 changed files with 90 additions and 24 deletions

View File

@@ -2,11 +2,27 @@
if (!defined('e107_INIT')) { exit; }
e107::lan('forum', 'English_front');
// e107::lan('forum', 'English_front');
/**
* @todo - extend array to allow selection of any main forum, as well as the forum front page
*/
$front_page['forum'] = array('page' => $PLUGINS_DIRECTORY.'forum/forum.php', 'title' => LAN_PLUGIN_FORUM_NAME);
// $front_page['forum'] = array('page' =>'{e_PLUGIN}forum/forum.php', 'title' => LAN_PLUGIN_FORUM_NAME);
//v2.x spec.
class forum_frontpage // include plugin-folder in the name.
{
function config()
{
$frontPage = array(
'title' => LAN_PLUGIN_FORUM_NAME,
'page' => '{e_PLUGIN}forum/forum.php',
);
return $frontPage;
}
}
?>