From: Geoffrey T. D. <da...@us...> - 2001-11-08 23:15:46
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv29368/lib Modified Files: Tag: release-1_2-branch config.php Log Message: Fix SF bug #420986: Fix PHP "Warning: Passing locale category name as string is deprecated...." Index: config.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/config.php,v retrieving revision 1.24.2.5 retrieving revision 1.24.2.6 diff -C2 -r1.24.2.5 -r1.24.2.6 *** config.php 2001/11/08 22:39:26 1.24.2.5 --- config.php 2001/11/08 23:15:43 1.24.2.6 *************** *** 210,214 **** bindtextdomain ("phpwiki", "./locale"); textdomain ("phpwiki"); ! setlocale("LC_ALL", ""); } // end of localization function --- 210,218 ---- bindtextdomain ("phpwiki", "./locale"); textdomain ("phpwiki"); ! if (!defined("LC_ALL")) { ! // Backwards compatibility (for PHP < 4.0.5) ! define("LC_ALL", "LC_ALL"); ! } ! setlocale(LC_ALL, ""); } // end of localization function |