*/
class Like extends BaseModule
{
- public static function rawContent()
+ public static function rawContent(array $parameters = [])
{
if (!Session::isAuthenticated()) {
throw new HTTPException\ForbiddenException();
// 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 = defaults($_REQUEST, 'return', '');
+ $returnPath = $_REQUEST['return'] ?? '';
if (!empty($returnPath)) {
$rand = '_=' . time();