require src/plugins.php

This commit is contained in:
slawkens 2024-11-19 07:46:16 +01:00
parent 035d0c1012
commit 8195b44061
3 changed files with 2 additions and 3 deletions

View File

@ -10,8 +10,6 @@
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Plugin manager';
require_once LIBS . 'plugins.php';
$twig->display('admin.plugins.form.html.twig');
if (isset($_REQUEST['uninstall'])) {

View File

@ -9,7 +9,6 @@ require_once __DIR__ . '/../../common.php';
require_once SYSTEM . 'functions.php';
require_once SYSTEM . 'init.php';
require_once SYSTEM . 'hooks.php';
require_once LIBS . 'plugins.php';
if($argc !== 2) {
echo 'This command expects one parameter: zip file name (plugin)' . PHP_EOL;

View File

@ -61,6 +61,8 @@ define('HOOK_FIRST', HOOK_STARTUP);
define('HOOK_LAST', HOOK_EMAIL_CONFIRMED);
require_once LIBS . 'plugins.php';
require_once LIBS . 'src/plugins.php';
class Hook
{
private $_name, $_type, $_file;