Update metaparser.lnk.php

This commit is contained in:
Namhyeon Go 2018-03-21 11:23:11 +09:00 committed by GitHub
parent 8bd6294df6
commit 6a38f3f040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,9 @@
* @brief PHP-Metaparser library linker
*/
$inc_file = "./vendor/PHP-Metaparser/MetaParser.class.php";
if(file_exists($inc_file)) {
include($inc_file);
if(!class_exists("MetaParser")) {
$inc_file = "./vendor/PHP-MetaParser/MetaParser.class.php";
if(file_exists($inc_file)) {
include($inc_file);
}
}