Jelajahi Sumber

Updated PHP code

Updated split to preg_split php function.
Josh Smith 7 tahun lalu
induk
melakukan
0c2cad24f8
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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){