Bug #91
error on plugin dashboard
| Status : | Closed | Start : | 03/01/2009 | |
| Priority : | High | Due date : | ||
| Assigned to : | Oleg Butuzov | % Done : | 0% |
|
| Category : | - | |||
| Target version : | 2.2 | |||
Description
Fatal error: Call to undefined function: str_ireplace() in /var/www/tc.siveco.com/web/wp/wp-content/plugins/wp-multilingual/multilingual.php on line 2645
this error appear when we try to go on the dashboard plugin
History
03/02/2009 03:50 PM - Oleg Butuzov
compability with php4
added to the source
<?php
if(!function_exists('str_ireplace')){
function str_ireplace($search,$replace,$subject){
$token = chr(1);
$haystack = strtolower($subject);
$needle = strtolower($search);
while (($pos=strpos($haystack,$needle))!==FALSE){
$subject = substr_replace($subject,$token,$pos,strlen($search));
$haystack = substr_replace($haystack,$token,$pos,strlen($search));
}
$subject = str_replace($token,$replace,$subject);
return $subject;
}
}
?>