mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 13:35:13 +02:00
[ticket/11628] Return $this from set_style, set_custom_style
PHPBB3-11628
This commit is contained in:
@ -46,7 +46,7 @@ interface phpbb_template
|
||||
* @param array $style_directories The directories to add style paths for
|
||||
* E.g. array('ext/foo/bar/styles', 'styles')
|
||||
* Default: array('styles') (phpBB's style directory)
|
||||
* @return bool true
|
||||
* @return phpbb_template $this
|
||||
*/
|
||||
public function set_style($style_directories = array('styles'));
|
||||
|
||||
@ -59,7 +59,7 @@ interface phpbb_template
|
||||
* @param array or string $paths Array of style paths, relative to current root directory
|
||||
* @param array $names Array of names of templates in inheritance tree order, used by extensions. If empty, $name will be used.
|
||||
* @param string $template_path Path to templates, relative to style directory. False if path should be set to default (templates/).
|
||||
* @return bool true
|
||||
* @return phpbb_template $this
|
||||
*/
|
||||
public function set_custom_style($name, $paths, $names = array(), $template_path = false);
|
||||
|
||||
|
@ -192,7 +192,7 @@ class phpbb_template_twig implements phpbb_template
|
||||
* @param array $style_directories The directories to add style paths for
|
||||
* E.g. array('ext/foo/bar/styles', 'styles')
|
||||
* Default: array('styles') (phpBB's style directory)
|
||||
* @return bool true
|
||||
* @return phpbb_template $this
|
||||
*/
|
||||
public function set_style($style_directories = array('styles'))
|
||||
{
|
||||
@ -228,7 +228,7 @@ class phpbb_template_twig implements phpbb_template
|
||||
|
||||
$this->set_style_names($names, $paths);
|
||||
|
||||
return true;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -240,7 +240,7 @@ class phpbb_template_twig implements phpbb_template
|
||||
* @param array or string $paths Array of style paths, relative to current root directory
|
||||
* @param array $names Array of names of templates in inheritance tree order, used by extensions. If empty, $name will be used.
|
||||
* @param string $template_path Path to templates, relative to style directory. False if path should be set to default (templates/).
|
||||
* @return bool true
|
||||
* @return phpbb_template $this
|
||||
*/
|
||||
public function set_custom_style($name, $paths, $names = array(), $template_path = false)
|
||||
{
|
||||
@ -262,7 +262,7 @@ class phpbb_template_twig implements phpbb_template
|
||||
|
||||
$this->set_style_names($names, $new_paths);
|
||||
|
||||
return true;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user