* Remove empty files (api\api.php, api\config.php) * Fix comment (undelete instead of delete) * Updated footer to 2017
@@ -1,2 +0,0 @@
-<?php
-?>
@@ -2,7 +2,7 @@
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
-include("config.php");
+
if (PHP_SAPI == 'cli-server') {
// To help the built-in PHP dev server, check if the request was actually for
// something which should probably be served as a static file
@@ -284,7 +284,7 @@ $app->post('/asset/{id:[0-9]+}/delete', function ($request, $response, $args) {
});
/*
- * Delete asset from library
+ * Undelete asset from library
*/
$app->post('/asset/{id:[0-9]+}/undelete', function ($request, $response, $args) {
@@ -3,7 +3,7 @@
<div class="col-md-12">
<hr/>
<p>
- Copyright © 2016 The Godot Engine community - MIT Licensed.
+ Copyright © 2017 The Godot Engine community - MIT Licensed.
<?php if(file_exists('.git/HEAD')) { $HEAD_contents = file_get_contents('.git/HEAD');?>
<?php if(preg_match('/^ref: (.+)$/m', $HEAD_contents, $ref_matches)) {
$ref = $ref_matches[1];