Fixed cron script
This commit is contained in:
parent
78759a6557
commit
da6c4681fa
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue