From 4bd32005b56f6ec741ceeed0a1745fe89f291085 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 2 Jun 2014 07:55:46 +0000 Subject: feature 3010 : replace trigger_action/event by trigger_notify/change git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'admin.php') diff --git a/admin.php b/admin.php index 478b0edde..213f33b75 100644 --- a/admin.php +++ b/admin.php @@ -33,7 +33,7 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); include_once(PHPWG_ROOT_PATH.'admin/include/functions_plugins.inc.php'); include_once(PHPWG_ROOT_PATH.'admin/include/add_core_tabs.inc.php'); -trigger_action('loc_begin_admin'); +trigger_notify('loc_begin_admin'); // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | @@ -244,7 +244,7 @@ if ($nb_photos_in_caddie > 0) // | Plugin menu | // +-----------------------------------------------------------------------+ -$plugin_menu_links = trigger_event('get_admin_plugin_menu_links', array() ); +$plugin_menu_links = trigger_change('get_admin_plugin_menu_links', array() ); function UC_name_compare($a, $b) { @@ -284,7 +284,7 @@ if ( // | Include specific page | // +-----------------------------------------------------------------------+ -trigger_action('loc_begin_admin_page'); +trigger_notify('loc_begin_admin_page'); include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php'); $template->assign('ACTIVE_MENU', get_active_menu($page['page'])); @@ -298,7 +298,7 @@ $template->assign( 'pwgmenu', pwg_URL() ); include(PHPWG_ROOT_PATH.'include/page_header.php'); -trigger_action('loc_end_admin'); +trigger_notify('loc_end_admin'); flush_page_messages(); -- cgit v1.2.3