mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/11852] Split filesystem and path_helper into 2 classes
PHPBB3-11852
This commit is contained in:
@@ -21,17 +21,17 @@ class asset
|
||||
{
|
||||
protected $components = array();
|
||||
|
||||
/** @var \phpbb\filesystem **/
|
||||
protected $phpbb_filesystem;
|
||||
/** @var \phpbb\path_helper **/
|
||||
protected $path_helper;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $url URL
|
||||
*/
|
||||
public function __construct($url, \phpbb\filesystem $phpbb_filesystem)
|
||||
public function __construct($url, \phpbb\path_helper $path_helper)
|
||||
{
|
||||
$this->phpbb_filesystem = $phpbb_filesystem;
|
||||
$this->path_helper = $path_helper;
|
||||
|
||||
$this->set_url($url);
|
||||
}
|
||||
@@ -119,7 +119,7 @@ class asset
|
||||
*/
|
||||
public function get_url()
|
||||
{
|
||||
return $this->phpbb_filesystem->update_web_root_path($this->join_url($this->components));
|
||||
return $this->path_helper->update_web_root_path($this->join_url($this->components));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user