Incorrect import in PHP 5.5
authorAlexander Ebert <ebert@woltlab.com>
Sun, 24 May 2020 19:38:15 +0000 (21:38 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 24 May 2020 19:38:15 +0000 (21:38 +0200)
wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php

index 4e5e879da963262cc58a62ee67d51de6e05ff2a4..4de8ebc674914e201fe6a4b8774299073634112e 100644 (file)
@@ -8,7 +8,6 @@ use wcf\system\exception\ImplementationException;
 use wcf\system\exception\SystemException;
 use wcf\system\SingletonFactory;
 use wcf\system\WCF;
-use function wcf\functions\exception\logThrowable;
 
 /**
  * Provides functions to execute cronjobs.
@@ -260,7 +259,8 @@ class CronjobScheduler extends SingletonFactory {
         */
        protected function logResult(CronjobLogEditor $logEditor, $exception = null) {
                if ($exception !== null) {
-                       logThrowable($exception);
+                       // Do not move this into an import, `use function` was introduced in PHP 5.6.
+                       \wcf\functions\exception\logThrowable($exception);
                        
                        $errString = implode("\n", [
                                $exception->getMessage(),