|
From: <ru...@us...> - 2012-10-15 22:54:00
|
Revision: 8416
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8416&view=rev
Author: rurban
Date: 2012-10-15 22:53:54 +0000 (Mon, 15 Oct 2012)
Log Message:
-----------
lib/config.php:152 strchr warning, use strpos instead.
Modified Paths:
--------------
trunk/lib/config.php
Modified: trunk/lib/config.php
===================================================================
--- trunk/lib/config.php 2012-10-11 12:56:58 UTC (rev 8415)
+++ trunk/lib/config.php 2012-10-15 22:53:54 UTC (rev 8416)
@@ -154,7 +154,7 @@
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);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|