summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-22 13:20:33 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-22 13:20:33 +0200
commitff4abd968f1baddd1255b9aa4d4945a003d276cc (patch)
treed41f7b0cd25f061bcc9628a6df4e70c5c6248b62
parent7b4281baaa14f2f44cd4bba116a671c80586902a (diff)
fix scrutinizer issues
-rw-r--r--CHANGELOG.md3
-rw-r--r--appinfo/application.php2
-rw-r--r--js/tests/unit/stubs/OC.js3
-rw-r--r--tests/unit/articleenhancer/EnhancerTest.php2
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