mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
none function was working
git-svn-id: http://piwigo.org/svn/trunk@15805 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -29,14 +29,6 @@ if (! defined('MULTIVIEW_CONTROLLER') )
|
||||
$conf['template_combine_files'] = false;
|
||||
if (pwg_get_session_var( 'multiview_no_history', 0 ))
|
||||
add_event_handler( 'pwg_log_allowed', create_function( '', 'return false;' ) );
|
||||
|
||||
if (pwg_get_session_var( 'purge_template', 0 ))
|
||||
{
|
||||
global $template;
|
||||
$template->delete_compiled_templates();
|
||||
FileCombiner::clear_combined_files();
|
||||
pwg_unset_session_var( 'purge_template' );
|
||||
}
|
||||
}
|
||||
|
||||
add_event_handler('loc_end_page_header', 'multiview_loc_end_page_header');
|
||||
|
||||
12
plugins/admin_multi_view/is_admin_template.inc.php
Normal file
12
plugins/admin_multi_view/is_admin_template.inc.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if (! defined('MULTIVIEW_CONTROLLER') )
|
||||
{
|
||||
if (pwg_get_session_var( 'purge_template', 0 ))
|
||||
{
|
||||
global $template;
|
||||
$template->delete_compiled_templates();
|
||||
FileCombiner::clear_combined_files();
|
||||
pwg_unset_session_var( 'purge_template' );
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -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' );
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user