mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* remove unnecessary parentheses in include/require
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = 'Load items.xml';
|
||||
|
||||
require(LIBS . 'items.php');
|
||||
require(LIBS . 'weapons.php');
|
||||
require LIBS . 'items.php';
|
||||
require LIBS . 'weapons.php';
|
||||
|
||||
echo $twig->render('admin.items.html.twig');
|
||||
|
||||
|
@@ -49,7 +49,7 @@ if(isset($_REQUEST['template'])) {
|
||||
|
||||
$file = TEMPLATES . $template . '/config.php';
|
||||
if(file_exists($file)) {
|
||||
require_once($file);
|
||||
require_once $file;
|
||||
}
|
||||
else {
|
||||
echo 'Cannot find template config.php file.';
|
||||
|
@@ -10,7 +10,7 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
$title = 'Plugin manager';
|
||||
|
||||
require(LIBS . 'plugins.php');
|
||||
require LIBS . 'plugins.php';
|
||||
|
||||
echo $twig->render('admin.plugins.form.html.twig');
|
||||
|
||||
|
@@ -25,5 +25,5 @@ if(preg_match("/[^A-z0-9_\-]/", $tool))
|
||||
|
||||
$file = BASE . 'admin/pages/tools/' . $tool . '.php';
|
||||
if(!@file_exists($file))
|
||||
require($file);
|
||||
require $file;
|
||||
?>
|
||||
|
@@ -18,7 +18,7 @@ You can enable it by editing this configurable in <b>config.local.php</b> file:<
|
||||
return;
|
||||
endif;
|
||||
|
||||
require(SYSTEM . 'libs/visitors.php');
|
||||
require SYSTEM . 'libs/visitors.php';
|
||||
$visitors = new Visitors($config['visitors_counter_ttl']);
|
||||
|
||||
function compare($a, $b) {
|
||||
|
Reference in New Issue
Block a user