aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/admin_multi_view/main.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/admin_multi_view/main.inc.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/plugins/admin_multi_view/main.inc.php b/plugins/admin_multi_view/main.inc.php
index ffeec4bcd..0c49d2c31 100644
--- a/plugins/admin_multi_view/main.inc.php
+++ b/plugins/admin_multi_view/main.inc.php
@@ -30,7 +30,8 @@ Author: Piwigo team
Author URI: http://piwigo.org
*/
-add_event_handler('init', 'multiview_user_init' );
+add_event_handler('user_init', 'multiview_user_init' );
+add_event_handler('init', 'multiview_init' );
function multiview_user_init()
{
@@ -39,4 +40,11 @@ function multiview_user_init()
include_once( dirname(__FILE__).'/is_admin.inc.php' );
}
+function multiview_init()
+{
+ if (!is_admin())
+ return;
+ include_once( dirname(__FILE__).'/is_admin_template.inc.php' );
+}
+
?>