diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2013-03-03 20:30:17 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2013-03-03 20:30:17 +0100 |
| commit | 46c4ff46e00e4f050a5c987027a4b05e72456162 (patch) | |
| tree | d97b32e48474bd61dddf76910520b8b6a82e426a /phpBB/includes | |
| parent | c2974187e53e1da2516075581b854a6dc3a95a6f (diff) | |
| download | forums-46c4ff46e00e4f050a5c987027a4b05e72456162.tar forums-46c4ff46e00e4f050a5c987027a4b05e72456162.tar.gz forums-46c4ff46e00e4f050a5c987027a4b05e72456162.tar.bz2 forums-46c4ff46e00e4f050a5c987027a4b05e72456162.tar.xz forums-46c4ff46e00e4f050a5c987027a4b05e72456162.zip | |
[ticket/10714] Logs are disabled for this page call only
PHPBB3-10714
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/log/interface.php | 9 | ||||
| -rw-r--r-- | phpBB/includes/log/log.php | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/phpBB/includes/log/interface.php b/phpBB/includes/log/interface.php index 24bf412ce0..3b459c9bdf 100644 --- a/phpBB/includes/log/interface.php +++ b/phpBB/includes/log/interface.php @@ -33,8 +33,11 @@ interface phpbb_log_interface public function is_enabled($type = ''); /** - * This function allows disabling the log system. When add_log is called - * and the type is disabled, the log will not be added to the database. + * Disable log + * + * This function allows disabling the log system or parts of it, for this + * page call. When add_log is called and the type is disabled, + * the log will not be added to the database. * * @param mixed $type The log type we want to disable. Empty to * disable all logs. Can also be an array of types. @@ -44,6 +47,8 @@ interface phpbb_log_interface public function disable($type = ''); /** + * Enable log + * * This function allows re-enabling the log system. * * @param mixed $type The log type we want to enable. Empty to diff --git a/phpBB/includes/log/log.php b/phpBB/includes/log/log.php index 8da8b63391..7a26858348 100644 --- a/phpBB/includes/log/log.php +++ b/phpBB/includes/log/log.php @@ -177,8 +177,11 @@ class phpbb_log implements phpbb_log_interface } /** - * This function allows disabling the log system. When add_log is called - * and the type is disabled, the log will not be added to the database. + * Disable log + * + * This function allows disabling the log system or parts of it, for this + * page call. When add_log is called and the type is disabled, + * the log will not be added to the database. * * {@inheritDoc} */ @@ -202,6 +205,8 @@ class phpbb_log implements phpbb_log_interface } /** + * Enable log + * * This function allows re-enabling the log system. * * {@inheritDoc} |
