]> git.mjollnir.org Git - s9y.git/commitdiff
set_time_limit might not be available everywhere, thanks to twobee
authorgarvinhicking <garvinhicking>
Tue, 23 May 2006 09:23:51 +0000 (09:23 +0000)
committergarvinhicking <garvinhicking>
Tue, 23 May 2006 09:23:51 +0000 (09:23 +0000)
include/admin/images.inc.php
include/admin/import.inc.php

index b07a69ca3075beae12803ee9745f56e046e8a20e..8531b51e0e41d39af41dd65aef48c7292b7e50ec 100644 (file)
@@ -15,7 +15,10 @@ switch ($serendipity['GET']['adminAction']) {
         if (!serendipity_checkPermission('adminImagesSync')) {
             break;
         }
-        @set_time_limit(0);
+
+        if (function_exists('set_time_limit')) {
+            @set_time_limit(0);
+        }
         @ignore_user_abort();
 
         echo '<p class="image_synch"><b>' . SYNCING . '</b><br /><br />';
index f03915d77e2eabf0a5b25b444e6ec52bd4d72cdb..3ed958eabae8353c1145550c70b450bdb2557e13 100644 (file)
@@ -11,7 +11,9 @@ if (!serendipity_checkPermission('adminImport')) {
 }
 
 /* This won't do anything if safe-mode is ON, but let's try anyway since importing could take a while */
-@set_time_limit(0);
+if (function_exists('set_time_limit')) {
+    @set_time_limit(0);
+}
 
 /* Class construct. Each importer plugin must extend this class. */
 class Serendipity_Import {