mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-12 17:04:01 +02:00
Minor.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<?php
|
s<?php
|
||||||
|
|
||||||
define('H5AI_VERSION', '{{VERSION}}');
|
define('H5AI_VERSION', '{{VERSION}}');
|
||||||
define('MIN_PHP_VERSION', '5.5.0');
|
define('MIN_PHP_VERSION', '5.5.0');
|
||||||
@@ -8,7 +8,7 @@ if (!function_exists('version_compare') || version_compare(PHP_VERSION, MIN_PHP_
|
|||||||
exit('[ERR] h5ai requires PHP ' . MIN_PHP_VERSION . ' or later, but found PHP ' . PHP_VERSION);
|
exit('[ERR] h5ai requires PHP ' . MIN_PHP_VERSION . ' or later, but found PHP ' . PHP_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (substr(H5AI_VERSION, 0, 2) === '{{') {
|
if (substr(H5AI_VERSION, 0, 1) === '{') {
|
||||||
header('Content-type: text/plain;charset=utf-8');
|
header('Content-type: text/plain;charset=utf-8');
|
||||||
exit('[ERR] h5ai sources must be preprocessed to work correctly');
|
exit('[ERR] h5ai sources must be preprocessed to work correctly');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user