mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-03 05:41:38 +08:00
使用新的自动加载机制
preg_replace_callback取代/e模式
This commit is contained in:
@@ -19,7 +19,7 @@ class Parser {
|
||||
// 解析内容
|
||||
static public function parse($content,$type){
|
||||
if(!isset(self::$handler[$type])) {
|
||||
$class = '\\Think\\Parser\\Driver\\'.ucwords($type);
|
||||
$class = '\\Think\\Parser\\Driver\\'.strtolower($type);
|
||||
self::$handler[$type] = new $class();
|
||||
}
|
||||
return self::$handler[$type]->parse($content);
|
||||
|
||||
Reference in New Issue
Block a user