Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-07-03 14:55:03 +0300
committerHendrik Leppelsack <hendrik@leppelsack.de>2015-07-03 14:55:03 +0300
commit1b3694e589f7cb4c8278a3cf31b53a5d148e516d (patch)
treef535e9cb966a1c092be9831b647965e6df032f95 /appinfo
parent8b158de2c08c3ae658ac362c5638d6a34e161107 (diff)
replaced deprecated functions
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/app.php6
-rw-r--r--appinfo/application.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/appinfo/app.php b/appinfo/app.php
index 9703ed13..8f404ed2 100644
--- a/appinfo/app.php
+++ b/appinfo/app.php
@@ -23,15 +23,15 @@
namespace OCA\Tasks\AppInfo;
if(\OCP\App::isEnabled('calendar')) {
- \OCP\App::addNavigationEntry(array(
+ \OC::$server->getNavigationManager()->add(array(
// the string under which your app will be referenced in owncloud
'id' => 'tasks',
'order' => 100,
- 'href' => \OCP\Util::linkToRoute('tasks.page.index'),
+ 'href' => \OC::$server->getURLGenerator()->linkToRoute('tasks.page.index'),
- 'icon' => \OCP\Util::imagePath('tasks', 'tasks.svg'),
+ 'icon' => \OC::$server->getURLGenerator()->imagePath('tasks', 'tasks.svg'),
'name' => \OC_L10N::get('tasks')->t('Tasks')
));
diff --git a/appinfo/application.php b/appinfo/application.php
index b55d820a..8b3e8eb6 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -121,7 +121,7 @@ class Application extends App {
* Core
*/
$container->registerService('UserId', function() {
- return \OCP\User::getUser();
+ return \OC::$server->getUserSession()->getUser()->getUID();
});
$container->registerService('L10N', function($c) {