Minahito
minah****@users*****
2006年 2月 4日 (土) 16:25:59 JST
Index: xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php diff -u xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.4 xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.5 --- xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.4 Sat Feb 4 15:37:42 2006 +++ xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php Sat Feb 4 16:25:59 2006 @@ -47,7 +47,7 @@ $findFlag=true; foreach($eventArgs->getKeywords() as $word) { - $findFlag&=(stripos(implode(" ",$configInfos),$word)!==false); + $findFlag&=(stristr(implode(" ",$configInfos),$word)!==false); } if($findFlag) { @@ -65,12 +65,12 @@ $findFlag=true; foreach($eventArgs->getKeywords() as $word) { $tmpFlag=false; - $tmpFlag|=(stripos($menu['title'],$word)!==false); + $tmpFlag|=(stristr($menu['title'],$word)!==false); // Search keyword if(isset($menu['keywords'])) { $keyword=is_array($menu['keywords']) ? implode(" ",$menu['keywords']) : $menu['keywords']; - $tmpFlag|=(stripos($keyword,$word)!==false); + $tmpFlag|=(stristr($keyword,$word)!==false); } $findFlag&=$tmpFlag; @@ -114,7 +114,7 @@ $lines = file($dir . "/" . $helpfile); foreach ($lines as $line) { foreach($eventArgs->getKeywords() as $word) { - if (stripos($line, $word) !== false) { + if (stristr($line, $word) !== false) { $url = XOOPS_MODULE_URL . "/base/admin/index.php?action=Help&dirname=" . $this->mAdaptee->getVar('dirname'); $eventArgs->addRecord($this->mAdaptee->getVar('name'), $url, _HELP); return;