From: Roland Häder Date: Wed, 11 Oct 2017 20:21:35 +0000 (+0200) Subject: Fixes/cleanup: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a29944836c21cd7355f02126ede4283b30d7322;p=friendica.git Fixes/cleanup: - added missing curly braces (and some absent caused parser errors) - [_once] are keywords, so don't use them as such - removed/added empty lines Signed-off-by: Roland Häder --- diff --git a/bin/daemon.php b/bin/daemon.php index 6b0e377a3a..b51dd392ef 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -38,7 +38,7 @@ if (substr($directory, 0, 1) != "/") { } $directory = realpath($directory."/.."); -@include($directory."/.htconfig.php"); +include $directory."/.htconfig.php"; if (!isset($pidfile)) { die('Please specify a pid file in the variable $pidfile in the .htconfig.php. For example:'."\n". diff --git a/mod/admin.php b/mod/admin.php index 7eadbb79ed..d195128a39 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -64,7 +64,7 @@ function admin_post(App $a) case 'addons': if ($a->argc > 2 && is_file("addon/" . $a->argv[2] . "/" . $a->argv[2] . ".php")) { - @include_once("addon/" . $a->argv[2] . "/" . $a->argv[2] . ".php"); + include_once "addon/" . $a->argv[2] . "/" . $a->argv[2] . ".php"; if (function_exists($a->argv[2] . '_addon_admin_post')) { $func = $a->argv[2] . '_addon_admin_post'; $func($a); @@ -1922,7 +1922,7 @@ function admin_page_addons(App $a) $admin_form = ""; if (in_array($addon, $a->addons_admin)) { - @require_once("addon/$addon/$addon.php"); + require_once "addon/$addon/$addon.php"; $func = $addon . '_addon_admin'; $func($a, $admin_form); }