fix test
This commit is contained in:
parent
ce4bd216b0
commit
19b47758de
1 changed files with 13 additions and 2 deletions
|
|
@ -46,6 +46,10 @@ final class YouTubeExtension extends Minz_Extension
|
||||||
$this->registerTranslates();
|
$this->registerTranslates();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string,mixed> $vars
|
||||||
|
* @return array<string,mixed>
|
||||||
|
*/
|
||||||
public static function jsVars(array $vars): array {
|
public static function jsVars(array $vars): array {
|
||||||
$vars['yt_i18n'] = [
|
$vars['yt_i18n'] = [
|
||||||
'fetching_icons' => _t('ext.yt_videos.fetching_icons'),
|
'fetching_icons' => _t('ext.yt_videos.fetching_icons'),
|
||||||
|
|
@ -71,7 +75,11 @@ final class YouTubeExtension extends Minz_Extension
|
||||||
return 'yt' . $feed->website() . $feed->proxyParam();
|
return 'yt' . $feed->website() . $feed->proxyParam();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ajaxGetYtFeeds() {
|
/**
|
||||||
|
* @throws Minz_PDOConnectionException
|
||||||
|
* @throws Minz_ConfigurationNamespaceException
|
||||||
|
*/
|
||||||
|
public function ajaxGetYtFeeds(): void {
|
||||||
$feedDAO = FreshRSS_Factory::createFeedDao();
|
$feedDAO = FreshRSS_Factory::createFeedDao();
|
||||||
$ids = $feedDAO->listFeedsIds();
|
$ids = $feedDAO->listFeedsIds();
|
||||||
|
|
||||||
|
|
@ -94,7 +102,10 @@ final class YouTubeExtension extends Minz_Extension
|
||||||
exit(json_encode($feeds));
|
exit(json_encode($feeds));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ajaxFetchIcon() {
|
/**
|
||||||
|
* @throws Minz_ConfigurationNamespaceException
|
||||||
|
*/
|
||||||
|
public function ajaxFetchIcon(): void {
|
||||||
$feedDAO = FreshRSS_Factory::createFeedDao();
|
$feedDAO = FreshRSS_Factory::createFeedDao();
|
||||||
|
|
||||||
$feed = $feedDAO->searchById(Minz_Request::paramInt('id'));
|
$feed = $feedDAO->searchById(Minz_Request::paramInt('id'));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue