Don't turn off timeout on langcheck in safemode
authorchriskl <chriskl>
Fri, 15 Jul 2005 02:51:45 +0000 (02:51 +0000)
committerchriskl <chriskl>
Fri, 15 Jul 2005 02:51:45 +0000 (02:51 +0000)
lang/langcheck

index b77976e9909345f6d22124993b555d4ffda7e93a..2c0ed96380fb4f008d8052b0b6030783aa8020aa 100644 (file)
@@ -5,10 +5,11 @@
         * This script will generate a report on the status of a language
         * as compared to the master english translation.
         *
-        * $Id: langcheck,v 1.3 2003/12/17 09:11:32 chriskl Exp $
+        * $Id: langcheck,v 1.4 2005/07/15 02:51:45 chriskl Exp $
         */
        error_reporting(E_ALL);
-       set_time_limit(0);
+       // Prevent timeouts on large exports (non-safe mode only)
+       if (!ini_get('safe_mode')) set_time_limit(0);
 
        // Check arguments
        if (sizeof($_SERVER['argv']) != 2) {