mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 12:14:06 +02:00
[ticket/15289] Update acp module
PHPBB3-15289
This commit is contained in:
@@ -15,6 +15,16 @@ namespace phpbb\storage\provider;
|
||||
|
||||
class local implements provider_interface
|
||||
{
|
||||
public function get_name()
|
||||
{
|
||||
return 'local';
|
||||
}
|
||||
|
||||
public function get_class()
|
||||
{
|
||||
return get_class($this);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
@@ -28,7 +38,7 @@ class local implements provider_interface
|
||||
*/
|
||||
public function get_options()
|
||||
{
|
||||
return ['path'];
|
||||
return ['path' => array('lang' => 'PATH', 'validate' => 'string', 'type' => 'text:40:255', 'explain' => false)];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -45,19 +45,14 @@ class storage
|
||||
$this->storage_name = $storage_name;
|
||||
}
|
||||
|
||||
public function get_id()
|
||||
{
|
||||
return $this->storage_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns storage name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_name()
|
||||
{
|
||||
return strtoupper('STORAGE_' . $this->storage_name . '_NAME');
|
||||
}
|
||||
|
||||
public function get_description()
|
||||
{
|
||||
return strtoupper('STORAGE_' . $this->storage_name . '_DESCRIPTION');
|
||||
return $this->storage_name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user