mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13454] Fix a few issues introduced by overdeleting stuff
PHPBB3-13454
This commit is contained in:
parent
266576c6a4
commit
38f3688217
3 changed files with 8 additions and 1 deletions
|
@ -51,6 +51,8 @@ class parser implements \phpbb\textformatter\parser_interface
|
|||
$this->dispatcher = $dispatcher;
|
||||
$this->parser = $parser;
|
||||
|
||||
$parser = $this;
|
||||
|
||||
/**
|
||||
* Configure the parser service
|
||||
*
|
||||
|
@ -72,6 +74,8 @@ class parser implements \phpbb\textformatter\parser_interface
|
|||
*/
|
||||
public function parse($text)
|
||||
{
|
||||
$parser = $this;
|
||||
|
||||
/**
|
||||
* Modify a text before it is parsed
|
||||
*
|
||||
|
|
|
@ -104,6 +104,7 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
|||
}
|
||||
$this->dispatcher = $dispatcher;
|
||||
$this->renderer = $renderer;
|
||||
$renderer = $this;
|
||||
|
||||
/**
|
||||
* Configure the renderer service
|
||||
|
@ -233,6 +234,8 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
|||
$xml = $this->quote_helper->inject_metadata($xml);
|
||||
}
|
||||
|
||||
$renderer = $this;
|
||||
|
||||
/**
|
||||
* Modify a parsed text before it is rendered
|
||||
*
|
||||
|
|
|
@ -281,7 +281,7 @@ class user extends \phpbb\session
|
|||
// User has wrong style
|
||||
if (!$this->style && $style_id == $this->data['user_style'])
|
||||
{
|
||||
$this->data['user_style'] = $config['default_style'];
|
||||
$style_id = $this->data['user_style'] = $config['default_style'];
|
||||
|
||||
$sql = 'UPDATE ' . USERS_TABLE . "
|
||||
SET user_style = $style_id
|
||||
|
|
Loading…
Add table
Reference in a new issue