diff --git a/appinfo/app.php b/appinfo/app.php index e85b61f..1f1f958 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -11,6 +11,8 @@ 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 diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index e6c6381..22a676f 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -18,7 +18,7 @@ use OCP\Settings\ISettings; class Admin implements ISettings { /** @var IL10N */ - private $l10n; + private $l; /** @var IURLGenerator */ private $urlGenerator; @@ -27,7 +27,7 @@ class Admin implements ISettings { * @param IL10N $l10n */ public function __construct(IL10N $l10n, IURLGenerator $urlGenerator) { - $this->l10n = $l10n; + $this->l = $l10n; $this->urlGenerator = $urlGenerator; } diff --git a/templates/settings.php b/templates/settings.php new file mode 100644 index 0000000..8fd3f92 --- /dev/null +++ b/templates/settings.php @@ -0,0 +1,5 @@ +
+
+

t('Weather')) ?>

+
+