diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-24 12:45:35 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-24 12:45:35 -0500 |
commit | bfbc7aa74250ea5e9e39efc63caf7cfdb9407e14 (patch) | |
tree | 70875f01af4c2b4f644915d66f81438e616a57b5 | |
parent | ecaed319ab46ee4dd45fe788a05aaeff96afc1d2 (diff) | |
download | forums-bfbc7aa74250ea5e9e39efc63caf7cfdb9407e14.tar forums-bfbc7aa74250ea5e9e39efc63caf7cfdb9407e14.tar.gz forums-bfbc7aa74250ea5e9e39efc63caf7cfdb9407e14.tar.bz2 forums-bfbc7aa74250ea5e9e39efc63caf7cfdb9407e14.tar.xz forums-bfbc7aa74250ea5e9e39efc63caf7cfdb9407e14.zip |
[ticket/11628] Return $this from set_style, set_custom_style
PHPBB3-11628
-rw-r--r-- | phpBB/phpbb/template/template.php | 4 | ||||
-rw-r--r-- | phpBB/phpbb/template/twig/twig.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/phpbb/template/template.php b/phpBB/phpbb/template/template.php index 537c4eaf01..95a48ba0ad 100644 --- a/phpBB/phpbb/template/template.php +++ b/phpBB/phpbb/template/template.php @@ -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); diff --git a/phpBB/phpbb/template/twig/twig.php b/phpBB/phpbb/template/twig/twig.php index eb84da20dc..48ea8edeb1 100644 --- a/phpBB/phpbb/template/twig/twig.php +++ b/phpBB/phpbb/template/twig/twig.php @@ -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; } /** |