mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-01 18:07:50 -05:00
* More PHPStan * More, passing * 4 more files * Update to PHPStan 1.11.4 Needed for fixed bug: Consider numeric-string types after string concat https://github.com/phpstan/phpstan/releases/tag/1.11.4 * Pass PHPStan level 9 Start tracking booleansInConditions * Fix mark as read * Fix doctype * ctype_digit
26 lines
736 B
PHTML
26 lines
736 B
PHTML
<?php
|
|
declare(strict_types=1);
|
|
/** @var FreshRSS_ViewJavascript $this */
|
|
|
|
$categories = [];
|
|
foreach ($this->categories as $category) {
|
|
$categories[] = [
|
|
'url' => Minz_Url::display(['c' => 'category', 'a' => 'refreshOpml', 'params' => ['id' => $category->id(), 'ajax' => '1']], 'php'),
|
|
'title' => $category->name(),
|
|
];
|
|
}
|
|
|
|
$feeds = [];
|
|
foreach ($this->feeds as $feed) {
|
|
$feeds[] = [
|
|
'url' => Minz_Url::display(['c' => 'feed', 'a' => 'actualize', 'params' => ['id' => $feed->id(), 'ajax' => '1']], 'php'),
|
|
'title' => $feed->name(),
|
|
];
|
|
}
|
|
echo json_encode([
|
|
'categories' => $categories,
|
|
'feeds' => $feeds,
|
|
'feedback_no_refresh' => _t('feedback.sub.feed.no_refresh'),
|
|
'feedback_actualize' => _t('feedback.sub.actualize'),
|
|
]);
|