Skip to content

Commit 5caa4bb

Browse files
committed
use correct preview url
1 parent c53d7b1 commit 5caa4bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/redirect.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function preview_action($episode_id)
112112
$event = ApiEventsClient::prepareEpisode($api_event);
113113

114114
$image = $event['preview'] ?
115-
: PluginEngine::getURL($plugin->getPluginURL() . '/images/default-preview.png');
115+
: URLHelper::getURL($GLOBALS['ocplugin_path'] . '/images/default-preview.png');
116116

117117
list ($response, $httpCode, $mimetype) = $api_events->fileRequest($image);
118118

0 commit comments

Comments
 (0)