heihe view中 scholar 搜索修改
This commit is contained in:
parent
aca061a853
commit
7bb495748a
|
@ -1029,7 +1029,7 @@ class ServiceController extends Zend_Controller_Action
|
|||
$error = "无搜索结果";
|
||||
}
|
||||
|
||||
if(preg_match_all("#<\/span>(.*)<br>(.+?)<span class=\"gs_fl\">#im",$html,$matchs,PREG_PATTERN_ORDER))
|
||||
if(preg_match_all("!<span class=gs_a>(.*)<\/span>!im",$html,$matchs,PREG_PATTERN_ORDER))
|
||||
{
|
||||
foreach ($matchs[0] as $k=>$v){
|
||||
if($k < $max) $rev[$k]['content']=utf8_encode($v);
|
||||
|
|
Loading…
Reference in New Issue