diff options
author | rvelices <rv-github@modusoptimus.com> | 2009-11-05 20:15:16 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2009-11-05 20:15:16 +0000 |
commit | 0257c3b2f172e23e10f9d11b8d84d86c02b305c0 (patch) | |
tree | 98d4bf2f53dcb76faefe60fc783a816d687bd82c /plugins/admin_multi_view/is_admin.inc.php | |
parent | ad1c1c1f5d2470a1475c86b006c746ff1449be76 (diff) |
merge -r4208 fro; trunk
admin multi view plugin : new option "do not save page visits to history table"
git-svn-id: http://piwigo.org/svn/branches/2.0@4209 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/admin_multi_view/is_admin.inc.php')
-rw-r--r-- | plugins/admin_multi_view/is_admin.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/admin_multi_view/is_admin.inc.php b/plugins/admin_multi_view/is_admin.inc.php index 7ae1f90dc..a1521c47b 100644 --- a/plugins/admin_multi_view/is_admin.inc.php +++ b/plugins/admin_multi_view/is_admin.inc.php @@ -25,6 +25,10 @@ if (! defined('MULTIVIEW_CONTROLLER') ) $conf['debug_l10n'] = true; if (pwg_get_session_var( 'multiview_debug_template', 0 )) $conf['debug_template'] = true; + if (pwg_get_session_var( 'multiview_no_history', 0 )) + { + add_event_handler( 'pwg_log_allowed', create_function( '', 'return false;' ) ); + } } add_event_handler('loc_end_page_header', 'multiview_loc_end_page_header'); |