Small fixes: Remove empty files, fix comment, update footer to 2017 (#114)

* Remove empty files (api\api.php, api\config.php)

* Fix comment (undelete instead of delete)

* Updated footer to 2017
This commit is contained in:
mhilbrunner
2017-09-27 12:36:58 +02:00
committed by Bojidar Marinov
parent 7b366e6df1
commit aa657e4ca0
5 changed files with 3 additions and 5 deletions

View File

View File

@@ -1,2 +0,0 @@
<?php
?>

View File

@@ -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

View 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) {

View File

@@ -3,7 +3,7 @@
<div class="col-md-12">
<hr/>
<p>
Copyright &copy; 2016 The Godot Engine community - MIT Licensed.
Copyright &copy; 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];