Kaynağa Gözat

Updated PHP code

Updated split to preg_split php function.
Josh Smith 7 yıl önce
ebeveyn
işleme
0c2cad24f8
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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){