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 --- public.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public.php') diff --git a/public.php b/public.php index 567408217d3..f8ef7a272b3 100644 --- a/public.php +++ b/public.php @@ -27,6 +27,9 @@ * along with this program. If not, see * */ + +require_once __DIR__ . '/lib/versioncheck.php'; + try { require_once __DIR__ . '/lib/base.php'; -- cgit v1.2.3