summaryrefslogtreecommitdiffstats
path: root/lib/utils.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.php')
-rw-r--r--lib/utils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils.php b/lib/utils.php
index 52e71b092..560114ca7 100644
--- a/lib/utils.php
+++ b/lib/utils.php
@@ -14,7 +14,7 @@ namespace OCA\News;
// load SimplePie library
//TODO: is this a suitable place for the following require?
- require_once 'news/3rdparty/SimplePie/autoloader.php';
+require_once 'news/3rdparty/SimplePie/autoloader.php';
class Utils {
@@ -93,7 +93,7 @@ class Utils {
$enclosureType = $itemEnclosure->get_type();
$enclosureLink = $itemEnclosure->get_link();
if(stripos($enclosureType, "audio/") !== FALSE) {
- $enclosure = new Item_Enclosure();
+ $enclosure = new Enclosure();
$enclosure->setMimeType($enclosureType);
$enclosure->setLink($enclosureLink);
$item->setEnclosure($enclosure);