hiphop is no more, hhvm can handle defines

This commit is contained in:
Shish 2015-08-02 19:24:45 +01:00
parent 90e86b99ae
commit c6cf4fa339

View File

@ -1083,10 +1083,6 @@ function manual_include($fname) {
// @include_once is used for user-creatable config files
$text = preg_replace('/@include_once "(.*)";/e', "manual_include('$1')", $text);
// wibble the defines for HipHop's sake
$text = str_replace('function _d(', '// function _messed_d(', $text);
$text = preg_replace('/_d\("(.*)", (.*)\);/', 'if(!defined("$1")) define("$1", $2);', $text);
return $text;
}