php7 지원하지않는 e옵션 대체

추가된 가입폼 나오지않는 문제수정
This commit is contained in:
conory 2015-12-21 15:36:05 +09:00 committed by Kijin Sung
parent 5f5377fe85
commit 15d93075c3

View file

@ -615,7 +615,7 @@ class memberAdminView extends member
}
$replace = array_merge($extentionReplace, $replace);
$inputTag = preg_replace('@%(\w+)%@e', '$replace[$1]', $template);
$inputTag = preg_replace_callback('@%(\w+)%@', function($n) { return $replace[$n[1]]; }, $template);
if($extendForm->description)
$inputTag .= '<p class="help-block">'.$extendForm->description.'</p>';