mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-06 03:49:56 +02:00
Use Composer for dependencies
This commit is contained in:
parent
fa8084d312
commit
16d80f8435
1882 changed files with 3711 additions and 327466 deletions
|
@ -51,14 +51,19 @@ class Plugin
|
|||
*/
|
||||
public function _get_info($name)
|
||||
{
|
||||
/* Require the file we want */
|
||||
require_once AmpConfig::get('prefix') . '/modules/plugins/' . $name . '.plugin.php';
|
||||
try {
|
||||
/* Require the file we want */
|
||||
if (!@include_once(AmpConfig::get('prefix') . '/modules/plugins/' . $name . '.plugin.php')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$plugin_name = "Ampache$name";
|
||||
$plugin_name = "Ampache$name";
|
||||
$this->_plugin = new $plugin_name();
|
||||
|
||||
$this->_plugin = new $plugin_name();
|
||||
|
||||
if (!$this->is_valid()) {
|
||||
if (!$this->is_valid()) {
|
||||
return false;
|
||||
}
|
||||
} catch (Exception $ex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue