summaryrefslogtreecommitdiffstats
path: root/appinfo/app.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index a8169548c..43db69fee 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -21,9 +21,11 @@
*
*/
-OC_APP::registerAdmin('news','settings');
+OC::$CLASSPATH['OC_News_Item'] = 'apps/news/lib/item.php';
-OC_App::register( array( 'order' => 70, 'id' => 'news', 'name' => 'News' ));
+$l = new OC_l10n('news');
-OC_App::addNavigationEntry( array( 'id' => 'news', 'order' => 74, 'href' => OC_Helper::linkTo( 'news', 'index.php' ), 'icon' => OC_Helper::imagePath( 'news', 'example.png' ), 'name' => 'News'));
+OCP\App::registerAdmin('news','settings');
+OCP\App::register( array( 'order' => 70, 'id' => 'news', 'name' => 'News' ));
+OCP\App::addNavigationEntry( array( 'id' => 'news', 'order' => 74, 'href' => OC_Helper::linkTo( 'news', 'index.php' ), 'icon' => OC_Helper::imagePath( 'news', 'example.png' ), 'name' => 'News'));