Merged in marcoAntonioNina/processmaker (pull request #1024)

Improvement generate file support
This commit is contained in:
Julio Cesar Laura Avendaño
2014-10-22 16:44:05 -04:00
2 changed files with 11 additions and 4 deletions

View File

@@ -5565,7 +5565,7 @@ class G
$clean = trim(str_replace($strip, "", strip_tags($string)));
$clean = preg_replace('/\s+/', "-", $clean);
$clean = ($alpha) ? preg_replace("/[^a-zA-Z0-9]/", "", $clean) : $clean ;
$clean = ($force_lowercase) ? (function_exists('mb_strtolower')) ? mb_strtolower($clean, 'UTF-8') : strtolower($clean) : $clean;
$clean = ($lowercase) ? (function_exists('mb_strtolower')) ? mb_strtolower($clean, 'UTF-8') : strtolower($clean) : $clean;
return $clean;
}
}