mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 01:36:57 +02:00
[ticket/10586] Extension front controller
Handle extension front pages PHPBB3-10586
This commit is contained in:
@@ -428,6 +428,28 @@ class phpbb_extension_manager
|
||||
}
|
||||
return $disabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check to see if a given extension is available on the filesystem
|
||||
*
|
||||
* @param string $name Extension name to check
|
||||
* @return bool Depending on whether or not the extension is available
|
||||
*/
|
||||
public function available($name)
|
||||
{
|
||||
return file_exists($this->phpbb_root_path . "ext/$name/");
|
||||
}
|
||||
|
||||
/**
|
||||
* Check to see if a given extension is enabled
|
||||
*
|
||||
* @param string $name Extension name to check
|
||||
* @return bool Depending on whether or not the extension is enabled
|
||||
*/
|
||||
public function enabled($name)
|
||||
{
|
||||
return isset($this->extensions[$name]) && $this->extensions[$name]['ext_active'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a phpbb_extension_finder.
|
||||
|
Reference in New Issue
Block a user