- Patch #44176 by Zen: performance improvement: split() -> explode().
parent
2f59320ca5
commit
6ff8147a75
|
@ -311,7 +311,7 @@ function _locale_import_read_po($file) {
|
|||
$plural = 0; // Current plural form
|
||||
|
||||
$po = strtr($po, array("\\\n" => ""));
|
||||
$lines = split("\n", $po);
|
||||
$lines = explode("\n", $po);
|
||||
$lineno = 0;
|
||||
|
||||
foreach ($lines as $line) {
|
||||
|
@ -903,7 +903,7 @@ function _locale_export_print($str) {
|
|||
* @author Jacobo Tarrio
|
||||
*/
|
||||
function _locale_export_wrap($str, $len) {
|
||||
$words = split(" ", $str);
|
||||
$words = explode(' ', $str);
|
||||
$ret = array();
|
||||
|
||||
$cur = "";
|
||||
|
|
|
@ -831,7 +831,7 @@ function theme_menu_links($links) {
|
|||
if (!count($links)) {
|
||||
return '';
|
||||
}
|
||||
$level_tmp = split('-', key($links));
|
||||
$level_tmp = explode('-', key($links));
|
||||
$level = $level_tmp[0];
|
||||
$output = "<ul class=\"links-$level\">\n";
|
||||
foreach ($links as $index => $link) {
|
||||
|
|
Loading…
Reference in New Issue