implement usage of __DIR__ to fix references on include

This commit is contained in:
2018-04-24 13:35:33 +02:00
parent 0c1141dbb9
commit d597a54353
14 changed files with 36 additions and 36 deletions

View File

@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require_once("../database.php");
require_once(__DIR__ . "/../database.php");
$response = new stdClass;
try {
$inputJSON = file_get_contents('php://input');