argc > 1) ? Strings::escapeTags(trim($app->argv[1])) : 0); if (!Item::performLike($itemId, $verb)) { throw new HTTPException\BadRequestException(); } // Decide how to return. If we were called with a 'return' argument, // then redirect back to the calling page. If not, just quietly end $returnPath = $_REQUEST['return'] ?? ''; if (!empty($returnPath)) { $rand = '_=' . time(); if (strpos($returnPath, '?')) { $rand = "&$rand"; } else { $rand = "?$rand"; } $app->internalRedirect($returnPath . $rand); } } }