diff --git a/controllers/redirect.php b/controllers/redirect.php index c087c3ac..bc780387 100644 --- a/controllers/redirect.php +++ b/controllers/redirect.php @@ -112,7 +112,7 @@ public function preview_action($episode_id) $event = ApiEventsClient::prepareEpisode($api_event); $image = $event['preview'] ? - : PluginEngine::getURL($plugin->getPluginURL() . '/images/default-preview.png'); + : URLHelper::getURL($GLOBALS['ocplugin_path'] . '/images/default-preview.png'); list ($response, $httpCode, $mimetype) = $api_events->fileRequest($image);