1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/16345] Small improvements

PHPBB3-16346
This commit is contained in:
rubencm
2020-06-07 02:15:35 +00:00
parent 3cceeb45bf
commit 774c609c4a
284 changed files with 1380 additions and 835 deletions

View File

@@ -23,7 +23,8 @@ class phpbb_mock_user
public $page = array('root_script_path' => '/');
public $style = [];
public $data = [];
public $lang = [];
private $options = array();
public function optionget($item)
{
@@ -31,10 +32,10 @@ class phpbb_mock_user
{
throw new Exception(sprintf("You didn't set the option '%s' on the mock user using optionset.", $item));
}
return $this->options[$item];
}
public function optionset($item, $value)
{
$this->options[$item] = $value;