diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-08 15:57:08 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-05-08 15:57:08 -0400 |
commit | 4bf4af8741ca723273ae9aff0f1d6c38511e2a07 (patch) | |
tree | d7e25b383f15837e60a1dff4fadae55ab72d57e0 /appinfo/app.php | |
parent | d1b37e12b2d76c128626e15910577e300ef0f63c (diff) |
rudimental item class and tests on it
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 8 |
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')); |