the define wibbling for hiphop seems to work now
This commit is contained in:
parent
fd5b4c5910
commit
2a18da523c
1 changed files with 2 additions and 2 deletions
|
@ -843,8 +843,8 @@ function manual_include($fname) {
|
|||
$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);
|
||||
$text = str_replace('function _d(', '// function _messed_d(', $text);
|
||||
$text = preg_replace('/_d\("(.*)", (.*)\);/', 'if(!defined("$1")) define("$1", $2);', $text);
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
|
Reference in a new issue