From 338896a0bc471bec88010f1aa410061e270cc106 Mon Sep 17 00:00:00 2001 From: rurban Date: Mon, 15 Oct 2012 22:53:54 +0000 Subject: [PATCH] lib/config.php:152 strchr warning, use strpos instead. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8416 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.php b/lib/config.php index f2914b961..a01ae8b36 100644 --- a/lib/config.php +++ b/lib/config.php @@ -154,7 +154,7 @@ function guessing_lang($languages = false) return $lang_short; } } - if ($pos = strchr($lang, "-") and in_array(substr($lang, 0, $pos), $languages)) + if ($pos = strpos($lang, "-") and in_array(substr($lang, 0, $pos), $languages)) return substr($lang, 0, $pos); } } -- 2.45.0