From 863bce7f13191aa40f3388f7cadc6c00eaf1aec4 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 20 Jun 2013 14:35:16 +0000 Subject: feature:2832 Provide better integration of plugins adding a all new section don't need for an extra file git-svn-id: http://piwigo.org/svn/trunk@23399 68402e56-0260-453c-a942-63ccdbb3a9ee --- index.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index a2b40417e..65c19bd69 100644 --- a/index.php +++ b/index.php @@ -119,6 +119,7 @@ $template->assign('TITLE', $template_title); //-------------------------------------------------------------- menubar include( PHPWG_ROOT_PATH.'include/menubar.inc.php'); +$template->set_filename('index', 'index.tpl'); // +-----------------------------------------------------------------------+ // | index page (categories, thumbnails, search, calendar, random, etc.) | @@ -127,8 +128,6 @@ if ( empty($page['is_external']) or !$page['is_external'] ) { //----------------------------------------------------- template initialization $page['body_id'] = 'theCategoryPage'; - - $template->set_filename('index', 'index.tpl'); if (isset($page['flat']) or isset($page['chronology_field'])) { @@ -335,13 +334,6 @@ if ( empty($page['is_external']) or !$page['is_external'] ) } } } -// +-----------------------------------------------------------------------+ -// | other pages (added by plugins) | -// +-----------------------------------------------------------------------+ -else -{ - $template->set_filename('index', 'common_page.tpl'); -} //------------------------------------------------------------ end include(PHPWG_ROOT_PATH.'include/page_header.php'); -- cgit v1.2.3