Admin: cleanup
parent
f4ed1a7476
commit
b50c4e3f72
|
@ -11,8 +11,6 @@
|
||||||
|
|
||||||
namespace OCA\Weather\AppInfo;
|
namespace OCA\Weather\AppInfo;
|
||||||
|
|
||||||
OCP\App::registerAdmin('weather', 'settings')
|
|
||||||
|
|
||||||
if (class_exists('\OCP\AppFramework\App')) {
|
if (class_exists('\OCP\AppFramework\App')) {
|
||||||
\OCP\App::addNavigationEntry(array(
|
\OCP\App::addNavigationEntry(array(
|
||||||
// the string under which your app will be referenced in owncloud
|
// 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')
|
'name' => \OCP\Util::getL10N('weather')->t('Weather')
|
||||||
));
|
));
|
||||||
} else {
|
} 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);
|
\OCP\Util::writeLog('weather', $msg, \OCP\Util::ERROR);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ class Admin implements ISettings {
|
||||||
* @return string the section ID, e.g. 'sharing'
|
* @return string the section ID, e.g. 'sharing'
|
||||||
*/
|
*/
|
||||||
public function getSection() {
|
public function getSection() {
|
||||||
return 'weather';
|
return 'additional';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue