From 884c9375f3e35578ad67b9d58a41b97fef04949c Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 29 Apr 2010 13:58:40 +0000 Subject: bug 1613 fixed: split the "pending" screen into 2 distinct sections : admin>photos>pending + admin>tools>pending comments. git-svn-id: http://piwigo.org/svn/trunk@5997 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/comments.php | 4 ---- admin/include/functions.php | 2 +- admin/include/functions_waiting.inc.php | 41 --------------------------------- admin/themes/default/template/admin.tpl | 1 + admin/upload.php | 4 ---- 5 files changed, 2 insertions(+), 50 deletions(-) delete mode 100644 admin/include/functions_waiting.inc.php (limited to 'admin') diff --git a/admin/comments.php b/admin/comments.php index 394825ec9..4bb4490ac 100644 --- a/admin/comments.php +++ b/admin/comments.php @@ -27,7 +27,6 @@ if (!defined('PHPWG_ROOT_PATH')) } include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); -include_once(PHPWG_ROOT_PATH.'admin/include/functions_waiting.inc.php'); // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | @@ -96,9 +95,6 @@ DELETE $template->set_filenames(array('comments'=>'comments.tpl')); -// TabSheet initialization -waiting_tabsheet(); - $template->assign( array( 'F_ACTION' => get_root_url().'admin.php?page=comments' diff --git a/admin/include/functions.php b/admin/include/functions.php index 618c65b99..d0ea59822 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -1908,7 +1908,6 @@ function get_active_menu($menu_page) { case 'photos_add': case 'upload': - case 'comments': // really needs to be moved somewhere else case 'rating': case 'tags': case 'picture_modify': @@ -1941,6 +1940,7 @@ function get_active_menu($menu_page) case 'history': case 'maintenance': case 'thumbnail': + case 'comments': return 4; case 'configuration': diff --git a/admin/include/functions_waiting.inc.php b/admin/include/functions_waiting.inc.php deleted file mode 100644 index ae27b97c2..000000000 --- a/admin/include/functions_waiting.inc.php +++ /dev/null @@ -1,41 +0,0 @@ -add('comments', l10n('Comments'), $link_start.'comments'); - $tabsheet->add('upload', l10n('Pictures'), $link_start.'upload'); - // TabSheet selection - $tabsheet->select($page['page']); - // Assign tabsheet to template - $tabsheet->assign(); -} - -?> diff --git a/admin/themes/default/template/admin.tpl b/admin/themes/default/template/admin.tpl index 380248870..0a3c5be70 100644 --- a/admin/themes/default/template/admin.tpl +++ b/admin/themes/default/template/admin.tpl @@ -73,6 +73,7 @@ jQuery().ready(function(){ldelim}
  • {'History'|@translate}
  • {'Thumbnails'|@translate}
  • {'Maintenance'|@translate}
  • +
  • {'Pending Comments'|@translate}
  • diff --git a/admin/upload.php b/admin/upload.php index b7790d4ac..e97198b18 100644 --- a/admin/upload.php +++ b/admin/upload.php @@ -27,7 +27,6 @@ if( !defined("PHPWG_ROOT_PATH") ) } include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); -include_once(PHPWG_ROOT_PATH.'admin/include/functions_waiting.inc.php'); // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | @@ -137,9 +136,6 @@ DELETE //----------------------------------------------------- template initialization $template->set_filenames(array('upload'=>'upload.tpl')); -// TabSheet initialization -waiting_tabsheet(); - $template->assign(array( 'F_ACTION'=>str_replace( '&', '&', $_SERVER['REQUEST_URI']) )); -- cgit v1.2.3