From b8af7ee9bc9badb76bbf8d7eb4ff9dcc8744ba6c Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 13 Oct 2017 21:30:29 +0200 Subject: Nextcloud 13 is not compatible with newer than php 7.2 Just to avoid users from trying this with a to new (untested) php version * Moved the check logic to 1 place * All directly callable scripts just require this on top * exit hard (-1) so we know scripts won't continue * Return status 500 so no sync clients will try fancy stuff Signed-off-by: Roeland Jago Douma --- remote.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'remote.php') diff --git a/remote.php b/remote.php index 1d83e5a7f83..8879a300296 100644 --- a/remote.php +++ b/remote.php @@ -28,6 +28,8 @@ * */ +require_once __DIR__ . '/lib/versioncheck.php'; + use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin; use Sabre\DAV\Exception\ServiceUnavailable; use Sabre\DAV\Server; -- cgit v1.2.3