diff options
| author | Vjacheslav Trushkin <arty@phpbb.com> | 2012-03-31 21:20:18 +0300 |
|---|---|---|
| committer | Vjacheslav Trushkin <arty@phpbb.com> | 2012-03-31 21:20:18 +0300 |
| commit | b3f46b9565117940b79c7530a1c21336cd072073 (patch) | |
| tree | 90066a5ac6afdf000eb37eacba2cee0f615477ae /phpBB/includes/style/path_provider.php | |
| parent | 7e2f16aafa47f8db51a12a293b0616cb75b4d12f (diff) | |
| download | forums-b3f46b9565117940b79c7530a1c21336cd072073.tar forums-b3f46b9565117940b79c7530a1c21336cd072073.tar.gz forums-b3f46b9565117940b79c7530a1c21336cd072073.tar.bz2 forums-b3f46b9565117940b79c7530a1c21336cd072073.tar.xz forums-b3f46b9565117940b79c7530a1c21336cd072073.zip | |
[ticket/10735] Changing locator paths structure
Changing locator paths to 2 dimensional array
PHPBB3-10735
Diffstat (limited to 'phpBB/includes/style/path_provider.php')
| -rw-r--r-- | phpBB/includes/style/path_provider.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/phpBB/includes/style/path_provider.php b/phpBB/includes/style/path_provider.php index c229af92ba..731d682e88 100644 --- a/phpBB/includes/style/path_provider.php +++ b/phpBB/includes/style/path_provider.php @@ -24,7 +24,6 @@ if (!defined('IN_PHPBB')) */ class phpbb_style_path_provider implements IteratorAggregate, phpbb_style_path_provider_interface { - protected $main_style_name = ''; protected $paths = array(); /** @@ -41,25 +40,14 @@ class phpbb_style_path_provider implements IteratorAggregate, phpbb_style_path_p * Overwrites the current style paths * * The first element of the passed styles map, is considered the main - * style and can be retrieved through get_main_style_path(). + * style. * * @param array $styles An array of style paths. The first element is the main style. * @return null */ public function set_styles(array $styles) { - $this->paths = $styles; - $this->main_style_path = $this->paths[0]; - } - - /** - * Retrieves the path to the main style passed into set_styles() - * - * @return string Main style path - */ - public function get_main_style_path() - { - return $this->main_style_path; + $this->paths = array('style' => $styles); } /** |
