[ticket/10714] Logs are disabled for this page call only

PHPBB3-10714
This commit is contained in:
Joas Schilling 2013-03-03 20:30:17 +01:00
parent c2974187e5
commit 46c4ff46e0
2 changed files with 14 additions and 4 deletions

View file

@ -33,8 +33,11 @@ interface phpbb_log_interface
public function is_enabled($type = ''); public function is_enabled($type = '');
/** /**
* This function allows disabling the log system. When add_log is called * Disable log
* and the type is disabled, the log will not be added to the database. *
* 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 * @param mixed $type The log type we want to disable. Empty to
* disable all logs. Can also be an array of types. * disable all logs. Can also be an array of types.
@ -44,6 +47,8 @@ interface phpbb_log_interface
public function disable($type = ''); public function disable($type = '');
/** /**
* Enable log
*
* This function allows re-enabling the log system. * This function allows re-enabling the log system.
* *
* @param mixed $type The log type we want to enable. Empty to * @param mixed $type The log type we want to enable. Empty to

View file

@ -177,8 +177,11 @@ class phpbb_log implements phpbb_log_interface
} }
/** /**
* This function allows disabling the log system. When add_log is called * Disable log
* and the type is disabled, the log will not be added to the database. *
* 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} * {@inheritDoc}
*/ */
@ -202,6 +205,8 @@ class phpbb_log implements phpbb_log_interface
} }
/** /**
* Enable log
*
* This function allows re-enabling the log system. * This function allows re-enabling the log system.
* *
* {@inheritDoc} * {@inheritDoc}