summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-23 14:39:23 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-23 14:39:23 +0100
commit682b01f58db3a522f39b0d6723a909660e440a81 (patch)
tree7e0f2ef3ac82f65d7b4482b2c4ff4df7e87bdac3
parent7837e71f70749f400fc075e9b27b2c92d5928ea9 (diff)
fix class namespaces
-rw-r--r--backgroundjob/task.php5
-rw-r--r--search/provider.php25
2 files changed, 23 insertions, 7 deletions
diff --git a/backgroundjob/task.php b/backgroundjob/task.php
index 098ff8393..e0b4d04f8 100644
--- a/backgroundjob/task.php
+++ b/backgroundjob/task.php
@@ -20,12 +20,13 @@
*
*/
-namespace OCA\News;
+namespace OCA\News\Backgroundjob;
+
/**
* This class maps a feed to an entry in the feeds table of the database.
*/
-class Backgroundjob {
+class Task {
static public function sortFeeds( $a, $b ) {
if( $a->getId() == $b->getId() ) {
return 0;
diff --git a/search/provider.php b/search/provider.php
index d9cf1d294..9cd933926 100644
--- a/search/provider.php
+++ b/search/provider.php
@@ -1,16 +1,31 @@
<?php
+
/**
-* ownCloud - News app
+* ownCloud - News
*
* @author Alessandro Cosentino
-* Copyright (c) 2012 - Alessandro Cosentino <cosenal@gmail.com>
+* @author Bernhard Posselt
+* @copyright 2012 Alessandro Cosentino cosenal@gmail.com
+* @copyright 2012 Bernhard Posselt nukeawhale@gmail.com
+*
+* This library is free software; you can redistribute it and/or
+* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
+* License as published by the Free Software Foundation; either
+* version 3 of the License, or any later version.
*
-* This file is licensed under the Affero General Public License version 3 or later.
-* See the COPYING-README file
+* This library is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
+*
+* You should have received a copy of the GNU Affero General Public
+* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
-class OC_Search_Provider_News extends OC_Search_Provider{
+namespaces \OCA\News\Search;
+
+class Provider extends \OC_Search_Provider {
function search($query) {
if (!OCP\App::isEnabled('news')) {