From: <sy...@us...> - 2007-01-10 21:51:47
|
Update of /cvsroot/tikiwiki/tiki/lib/smarty_tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv9839/lib/smarty_tiki Modified Files: Tag: BRANCH-1-9 function.phplayers.php Log Message: stripos is php5... Index: function.phplayers.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/smarty_tiki/function.phplayers.php,v retrieving revision 1.7.2.10 retrieving revision 1.7.2.11 diff -u -d -r1.7.2.10 -r1.7.2.11 --- function.phplayers.php 10 Jan 2007 21:46:39 -0000 1.7.2.10 +++ function.phplayers.php 10 Jan 2007 21:51:46 -0000 1.7.2.11 @@ -67,7 +67,7 @@ $channels = $tikilib->list_menu_options($id,0,-1,'position_asc',''); $intended = false; $output = ''; - $url = urldecode($_SERVER['REQUEST_URI']); + $url = strtolower(urldecode($_SERVER['REQUEST_URI'])); foreach ($channels['data'] as $key=>$cd) { $cd["name"] = tra($cd["name"]); if ($cd["type"] == 'o' and $indented) { @@ -75,7 +75,7 @@ } elseif ($cd["type"] == 's') { $indented = true; } - if (!empty($cd['url']) && stripos($url, $cd['url']) !== false) { + if (!empty($cd['url']) && strpos($url, strtolower($cd['url'])) !== false) { $curOption = $key+1; } $output.= ".|".$cd["name"]."|".$cd["url"]."\n"; |