aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-08-17 13:21:44 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-08-17 13:21:44 +0000
commit300f6868afc4ee53d97d289f85a0383b88ba377e (patch)
tree6e7b16bcd8b5074162e5b7e002f539a1aa2b8108 /phpBB/includes/functions.php
parentd42e5a71d23093a4cce4b1a56b7482670258476d (diff)
downloadforums-300f6868afc4ee53d97d289f85a0383b88ba377e.tar
forums-300f6868afc4ee53d97d289f85a0383b88ba377e.tar.gz
forums-300f6868afc4ee53d97d289f85a0383b88ba377e.tar.bz2
forums-300f6868afc4ee53d97d289f85a0383b88ba377e.tar.xz
forums-300f6868afc4ee53d97d289f85a0383b88ba377e.zip
i am very very sorry for this hackish approach...
(ability to skip add_log calls) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10003 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index d1883907dd..02bd24b246 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3150,6 +3150,14 @@ function add_log()
{
global $db, $user;
+ // In phpBB 3.1.x i want to have logging in a class to be able to control it
+ // For now, we need a quite hakish approach to circumvent logging for some actions
+ // @todo implement cleanly
+ if (!empty($GLOBALS['skip_add_log']))
+ {
+ return false;
+ }
+
$args = func_get_args();
$mode = array_shift($args);