Admin: cleanup

master
Loic Blot 2017-03-01 15:51:53 +01:00
parent f4ed1a7476
commit b50c4e3f72
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987
3 changed files with 2 additions and 4 deletions

View File

@ -11,8 +11,6 @@
namespace OCA\Weather\AppInfo;
OCP\App::registerAdmin('weather', 'settings')
if (class_exists('\OCP\AppFramework\App')) {
\OCP\App::addNavigationEntry(array(
// the string under which your app will be referenced in owncloud
@ -34,6 +32,6 @@ if (class_exists('\OCP\AppFramework\App')) {
'name' => \OCP\Util::getL10N('weather')->t('Weather')
));
} else {
$msg = 'Can not enable the OwnBoard app because the App Framework App is disabled';
$msg = 'Can not enable Weather app because the App Framework App is disabled';
\OCP\Util::writeLog('weather', $msg, \OCP\Util::ERROR);
}

View File

@ -45,7 +45,7 @@ class Admin implements ISettings {
* @return string the section ID, e.g. 'sharing'
*/
public function getSection() {
return 'weather';
return 'additional';
}
/**