Move PHP version check to index.php

This commit is contained in:
Daniel Rudolf 2015-11-27 19:45:21 +01:00
parent 81138ce06a
commit 86d1f713f2
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,10 @@
<?php
// check PHP version
if (version_compare(PHP_VERSION, '5.3.6', '<')) {
die('Sorry, Pico requires PHP 5.3.6 or above to run!');
}
// load dependencies
if(is_file($f = __DIR__ . '/vendor/autoload.php')) {
// local composer install

View file

@ -271,11 +271,6 @@ class Pico
*/
public function run()
{
// check PHP version
if (version_compare(PHP_VERSION, '5.3.6', '<')) {
die('Sorry, Pico requires PHP 5.3.6 or above to run!');
}
// lock Pico
$this->locked = true;