1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +00:00

Fix some deprecated things for NC 14

This commit is contained in:
Loic Blot 2018-04-10 08:48:55 +02:00
parent 8a0580e7c4
commit ccc164db5a
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987

View File

@ -21,11 +21,11 @@ if (class_exists('\OCP\AppFramework\App')) {
'order' => 10, 'order' => 10,
// the route that will be shown on startup // the route that will be shown on startup
'href' => \OCP\Util::linkToRoute('ocsms.sms.index'), 'href' => \OC::$server->getURLGenerator()->linkToRoute('ocsms.sms.index'),
// the icon that will be shown in the navigation // the icon that will be shown in the navigation
// this file needs to exist in img/ // this file needs to exist in img/
'icon' => \OCP\Util::imagePath('ocsms', 'app.svg'), 'icon' => \OC::$server->getURLGenerator()->imagePath('ocsms', 'app.svg'),
// the title of your application. This will be used in the // the title of your application. This will be used in the
// navigation or on the settings page of your app // navigation or on the settings page of your app
@ -33,5 +33,5 @@ if (class_exists('\OCP\AppFramework\App')) {
)); ));
} else { } else {
$msg = 'Can not enable the OcSms app because the App Framework App is disabled'; $msg = 'Can not enable the OcSms app because the App Framework App is disabled';
\OCP\Util::writeLog('ocsms', $msg, \OCP\Util::ERROR); \OC::$server->getLogger()->error($msg, array('ocsms'));
} }