diff --git a/build/index.php b/build/index.php index c6793d0..968cc1c 100644 --- a/build/index.php +++ b/build/index.php @@ -3287,7 +3287,7 @@ register_module([ file_put_contents($paths->recentchanges, "[]"); /** - * @api {get} ?action=recentchanges[&format={code}] Get a list of recent changes + * @api {get} ?action=recent-changes[&format={code}] Get a list of recent changes * @apiName RecentChanges * @apiGroup Stats * @apiPermission Anonymous @@ -3328,7 +3328,7 @@ register_module([ case "json": $result = json_encode($recent_changes); header("content-type: application/json"); - header("content-length: $result"); + header("content-length: " . strlen($result)); exit($result); break; } diff --git a/module_index.json b/module_index.json index b73503f..a8f017c 100755 --- a/module_index.json +++ b/module_index.json @@ -86,7 +86,7 @@ "author": "Starbeamrainbowlabs", "description": "Adds recent changes. Access through the 'recent-changes' action.", "id": "feature-recent-changes", - "lastupdate": 1523987868, + "lastupdate": 1523988221, "optional": false }, { diff --git a/modules/feature-recent-changes.php b/modules/feature-recent-changes.php index 276d5b3..a6b2aa0 100644 --- a/modules/feature-recent-changes.php +++ b/modules/feature-recent-changes.php @@ -15,7 +15,7 @@ register_module([ file_put_contents($paths->recentchanges, "[]"); /** - * @api {get} ?action=recentchanges[&format={code}] Get a list of recent changes + * @api {get} ?action=recent-changes[&format={code}] Get a list of recent changes * @apiName RecentChanges * @apiGroup Stats * @apiPermission Anonymous @@ -56,7 +56,7 @@ register_module([ case "json": $result = json_encode($recent_changes); header("content-type: application/json"); - header("content-length: $result"); + header("content-length: " . strlen($result)); exit($result); break; }