mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
Fixes/cleanup:
- added missing curly braces (and some absent caused parser errors) - <include|require>[_once] are keywords, so don't use them as such - removed/added empty lines Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
3d418dc1fd
commit
7a29944836
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ if (substr($directory, 0, 1) != "/") {
|
||||||
}
|
}
|
||||||
$directory = realpath($directory."/..");
|
$directory = realpath($directory."/..");
|
||||||
|
|
||||||
@include($directory."/.htconfig.php");
|
include $directory."/.htconfig.php";
|
||||||
|
|
||||||
if (!isset($pidfile)) {
|
if (!isset($pidfile)) {
|
||||||
die('Please specify a pid file in the variable $pidfile in the .htconfig.php. For example:'."\n".
|
die('Please specify a pid file in the variable $pidfile in the .htconfig.php. For example:'."\n".
|
||||||
|
|
|
@ -64,7 +64,7 @@ function admin_post(App $a)
|
||||||
case 'addons':
|
case 'addons':
|
||||||
if ($a->argc > 2 &&
|
if ($a->argc > 2 &&
|
||||||
is_file("addon/" . $a->argv[2] . "/" . $a->argv[2] . ".php")) {
|
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')) {
|
if (function_exists($a->argv[2] . '_addon_admin_post')) {
|
||||||
$func = $a->argv[2] . '_addon_admin_post';
|
$func = $a->argv[2] . '_addon_admin_post';
|
||||||
$func($a);
|
$func($a);
|
||||||
|
@ -1922,7 +1922,7 @@ function admin_page_addons(App $a)
|
||||||
|
|
||||||
$admin_form = "";
|
$admin_form = "";
|
||||||
if (in_array($addon, $a->addons_admin)) {
|
if (in_array($addon, $a->addons_admin)) {
|
||||||
@require_once("addon/$addon/$addon.php");
|
require_once "addon/$addon/$addon.php";
|
||||||
$func = $addon . '_addon_admin';
|
$func = $addon . '_addon_admin';
|
||||||
$func($a, $admin_form);
|
$func($a, $admin_form);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue