Skip to content

Commit

Permalink
use correct preview url
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Sep 18, 2024
1 parent c53d7b1 commit 5caa4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5caa4bb

Please sign in to comment.