From ff4abd968f1baddd1255b9aa4d4945a003d276cc Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 22 Sep 2014 13:20:33 +0200 Subject: fix scrutinizer issues --- CHANGELOG.md | 3 +++ appinfo/application.php | 2 +- js/tests/unit/stubs/OC.js | 3 --- tests/unit/articleenhancer/EnhancerTest.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4eb463a6..6828d0c63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +owncloud-news (3.004) +* **Bugfix**: Fix remove YouTube autoplay on libxml versions < 2.6 + owncloud-news (3.003) * **Bugfix**: Correctly toggle title of star and keep unread icons * **Bugfix**: Fix bug that prevented the webinterface's update every 60 seconds diff --git a/appinfo/application.php b/appinfo/application.php index 37dace4c4..2dea28fc2 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -351,7 +351,7 @@ class Application extends App { return new \HTMLPurifier($config); }); - $container->registerService('GlobalArticleEnhancer', function($c) { + $container->registerService('GlobalArticleEnhancer', function() { return new GlobalArticleEnhancer(); }); diff --git a/js/tests/unit/stubs/OC.js b/js/tests/unit/stubs/OC.js index 2835b368f..495c64dee 100644 --- a/js/tests/unit/stubs/OC.js +++ b/js/tests/unit/stubs/OC.js @@ -12,8 +12,5 @@ window.OC = { 'use strict'; return '/base' + url; - }, - theme: { - name: 'test-theme' } }; \ No newline at end of file diff --git a/tests/unit/articleenhancer/EnhancerTest.php b/tests/unit/articleenhancer/EnhancerTest.php index 2223b1d06..49222a34d 100644 --- a/tests/unit/articleenhancer/EnhancerTest.php +++ b/tests/unit/articleenhancer/EnhancerTest.php @@ -95,7 +95,7 @@ class EnhancerTest extends \PHPUnit_Framework_TestCase { $result = $this->enhancer->enhance($item, 'test'); - $this->assertEquals(3, $item->getBody()); + $this->assertEquals(3, $result->getBody()); } } \ No newline at end of file -- cgit v1.2.3