aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-base/www/index.php
diff options
context:
space:
mode:
authorM.Gergo2021-05-17 17:50:05 +0200
committerM.Gergo2021-05-17 17:50:05 +0200
commitef8b3fd973fa34b303370d5acc21744e57bca507 (patch)
tree67a42f55b0f36f024c33d8892c1112e8c5746556 /mayor-orig/mayor-base/www/index.php
parentfb24a50c54d5776468e49def08aea44c4077eb47 (diff)
downloadmayor-ef8b3fd973fa34b303370d5acc21744e57bca507.tar.gz
mayor-ef8b3fd973fa34b303370d5acc21744e57bca507.zip
Rev: 4787rev4787
Diffstat (limited to 'mayor-orig/mayor-base/www/index.php')
-rw-r--r--mayor-orig/mayor-base/www/index.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mayor-orig/mayor-base/www/index.php b/mayor-orig/mayor-base/www/index.php
index 6db3d23e..1f50a99c 100644
--- a/mayor-orig/mayor-base/www/index.php
+++ b/mayor-orig/mayor-base/www/index.php
@@ -12,7 +12,12 @@
require('include/base/str.php');
require('include/base/log.php');
require('include/alert/base.php');
- if ( defined('__TESTERRORREPORTER') && __TESTERRORREPORTER===true) require('include/base/error.php');
+ if (version_compare(PHP_VERSION, '5.3.0', '>')) {
+ if (file_exists('vendor/autoload.php')) {
+ require_once('vendor/autoload.php');
+ require_once('include/base/error.php');
+ }
+ }
require('include/base/rights.php');
require('include/base/login.php');
require('include/menu/base.php') ;