1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-05 15:32:56 +02:00

Merge pull request #21 from ayamshanov/undefinedMethodAt_feedphp

Undefined method at feed.php
This commit is contained in:
Frank de Lange 2016-08-17 14:52:59 +02:00 committed by GitHub
commit 77383b23c7

View file

@ -115,12 +115,12 @@ class Feed
. $scheme . $scheme
. "://" . "://"
. $_SERVER['HTTP_HOST'] . $_SERVER['HTTP_HOST']
. \OC_Helper::mimetypeIcon($i->getMimeType()) . \OC::$server->getMimeTypeDetector()->mimeTypeIcon($i->getMimeType())
); );
/* Note: relative URL should be enough (RFC7231) but some OPDS clients /* Note: relative URL should be enough (RFC7231) but some OPDS clients
* (especially those in dedicated book readers) might not support them * (especially those in dedicated book readers) might not support them
* *
* header("Location: " . \OC_Helper::mimetypeIcon($i->getMimeType())); * header("Location: " . \OC::$server->getMimeTypeDetector()->mimeTypeIcon($i->getMimeType()));
*/ */
} }
} }