소스 검색

Updated PHP code

Updated split to preg_split php function.
Josh Smith 7 년 전
부모
커밋
0c2cad24f8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      text.php.tmpl

+ 1 - 1
text.php.tmpl

@@ -14,7 +14,7 @@ if(empty(\$_REQUEST["report"])) {
 }
 
 //Get labels for meta and page titles
-\$labels = split("[-.]", \$report);
+\$labels = preg_split("/[\s-.]/", \$report);
 \$count = count(\$labels);
 
 if (\$count == 3){