diff --git a/Gruntfile.js b/Gruntfile.js index c081659..d9d7f6d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,7 +17,7 @@ module.exports = grunt => { files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/", flatten: true}] }, php: { - files: [{expand: true, cwd: "src/main/", src: "**/*.php", dest: "dist/", flatten: true}] + files: [{expand: true, cwd: "src/main/", src: "**/*.php", dest: "dist/", flatten: false}] }, }, focus: { diff --git a/composer.json b/composer.json index 5225fbb..17bbfd0 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "fwdekker/death-notifier", "description": "Get notified when a famous person dies.", - "version": "0.0.3", + "version": "0.0.4", "type": "project", "license": "MIT", "homepage": "https://git.fwdekker.com/tools/death-notifier", @@ -23,7 +23,7 @@ }, "autoload": { "psr-4": { - "main\\": "./" + "php\\": "php/" } }, "minimum-stability": "stable" diff --git a/package.json b/package.json index c5c24d4..0f608a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "death-notifier", - "version": "0.0.3", + "version": "0.0.4", "description": "Get notified when a famous person dies.", "author": "Florine W. Dekker", "browser": "dist/bundle.js", diff --git a/src/main/api.php b/src/main/api.php index 330afb9..d6fc3c9 100644 --- a/src/main/api.php +++ b/src/main/api.php @@ -1,13 +1,13 @@ validate_logged_in() ?? $user_manager->get_user_data($_SESSION["uuid"]), "list-trackings" => validate_logged_in() ?? $tracking_manager->list_trackings($_SESSION["uuid"]), - "is-alive" => $mediawiki->people_are_alive(array("Janelle MonĂ¡e", "John Malkovich", "Adolf Hitler")), + "is-alive" => $mediawiki->people_are_alive(array("John Cusack", "Cameron Diaz", "John Malkovich")), default => new Response("Unknown GET action '" . $_GET["action"] . "'.", false), }; } else { diff --git a/src/main/Mailer.php b/src/main/php/Mailer.php similarity index 99% rename from src/main/Mailer.php rename to src/main/php/Mailer.php index ff667b4..c770eaa 100644 --- a/src/main/Mailer.php +++ b/src/main/php/Mailer.php @@ -1,6 +1,6 @@ in_array("Category:Living people", array_column($it, "title")); $alive_results = array_combine($page_names, array_map($is_alive, $page_categories)); diff --git a/src/main/Response.php b/src/main/php/Response.php similarity index 96% rename from src/main/Response.php rename to src/main/php/Response.php index 8caf5f5..8ef371c 100644 --- a/src/main/Response.php +++ b/src/main/php/Response.php @@ -1,6 +1,6 @@