aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Category.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-11-11 08:17:12 +0100
committerGravatar GitHub <noreply@github.com> 2025-11-11 08:17:12 +0100
commita18c35046daee15e7ac5f85db290d54541a03e3c (patch)
treeec638cf7c93537a4f81b27216097d8509252eb81 /app/Models/Category.php
parent5e622c60fa5c40793138807280319f7e84d00cc6 (diff)
Housekeeping lib_rss.php (#8193)
* Housekeeping lib_rss.php `lib_rss.php` had become much too large, especially after https://github.com/FreshRSS/FreshRSS/pull/7924 Moved most functions to other places. Mostly no change of code otherwise (see comments). * Extension: composer run-script phpstan-third-party
Diffstat (limited to 'app/Models/Category.php')
-rw-r--r--app/Models/Category.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php
index 554e002fb..4d7740ed1 100644
--- a/app/Models/Category.php
+++ b/app/Models/Category.php
@@ -176,7 +176,7 @@ class FreshRSS_Category extends Minz_Model {
* @throws FreshRSS_Context_Exception
*/
public function cacheFilename(string $url): string {
- $simplePie = customSimplePie($this->attributes(), $this->curlOptions());
+ $simplePie = new FreshRSS_SimplePieCustom($this->attributes(), $this->curlOptions());
$filename = $simplePie->get_cache_filename($url);
return CACHE_PATH . '/' . $filename . '.opml.xml';
}
@@ -188,7 +188,7 @@ class FreshRSS_Category extends Minz_Model {
}
$ok = true;
$cachePath = $this->cacheFilename($url);
- $opml = httpGet($url, $cachePath, 'opml', $this->attributes(), $this->curlOptions())['body'];
+ $opml = FreshRSS_http_Util::httpGet($url, $cachePath, 'opml', $this->attributes(), $this->curlOptions())['body'];
if ($opml == '') {
Minz_Log::warning('Error getting dynamic OPML for category ' . $this->id() . '! ' .
\SimplePie\Misc::url_remove_credentials($url));