From da6c4681fa99f8f6b5d4da1c1e7d6499e2ab7677 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 10 Oct 2014 19:53:20 +0200 Subject: [PATCH] Fixed cron script --- scripts/cron-globals.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/cron-globals.php b/scripts/cron-globals.php index d3c618c4..2b0b13c7 100644 --- a/scripts/cron-globals.php +++ b/scripts/cron-globals.php @@ -2,7 +2,9 @@ require_once(__DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'src' - . DIRECTORY_SEPARATOR . 'AutoLoader.php'); + . DIRECTORY_SEPARATOR . 'Bootstrap.php'); -$postService = Szurubooru\Injector::get(\Szurubooru\Services\PostService::class); +use \Szurubooru\Services\PostService; + +$postService = Szurubooru\Injector::get(PostService::class); $postService->updatePostGlobals();