mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-09 16:44:26 +02:00
Completely removed argc/argv
This commit is contained in:
parent
540ddb9265
commit
df558d4056
18 changed files with 70 additions and 114 deletions
|
@ -39,10 +39,9 @@ class RemoveTag extends BaseModule
|
|||
throw new HTTPException\ForbiddenException();
|
||||
}
|
||||
|
||||
$app = DI::app();
|
||||
$logger = DI::logger();
|
||||
|
||||
$item_id = (($app->argc > 1) ? intval($app->argv[1]) : 0);
|
||||
$item_id = $parameters['id'] ?? 0;
|
||||
|
||||
$term = XML::unescape(trim($_GET['term'] ?? ''));
|
||||
$cat = XML::unescape(trim($_GET['cat'] ?? ''));
|
||||
|
|
|
@ -44,12 +44,11 @@ class SaveTag extends BaseModule
|
|||
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
$a = DI::app();
|
||||
$logger = DI::logger();
|
||||
|
||||
$term = XML::unescape(trim($_GET['term'] ?? ''));
|
||||
// @TODO: Replace with parameter from router
|
||||
$item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0);
|
||||
|
||||
$item_id = $parameters['id'] ?? 0;
|
||||
|
||||
$logger->info('filer', ['tag' => $term, 'item' => $item_id]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue