mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Completely removed argc/argv
This commit is contained in:
parent
540ddb9265
commit
df558d4056
18 changed files with 70 additions and 114 deletions
|
@ -45,11 +45,11 @@ class Help extends BaseModule
|
|||
$lang = $config->get('system', 'language');
|
||||
|
||||
// @TODO: Replace with parameter from router
|
||||
if ($a->argc > 1) {
|
||||
if (DI::args()->getArgc() > 1) {
|
||||
$path = '';
|
||||
// looping through the argv keys bigger than 0 to build
|
||||
// a path relative to /help
|
||||
for ($x = 1; $x < $a->argc; $x ++) {
|
||||
for ($x = 1; $x < DI::args()->getArgc(); $x ++) {
|
||||
if (strlen($path)) {
|
||||
$path .= '/';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue