Admin Settings: Add missing template & do some more fixes

master
Loic Blot 2017-03-01 14:35:45 +01:00
parent 6c808d3df0
commit 2fe7fad749
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987
3 changed files with 9 additions and 2 deletions

View File

@ -11,6 +11,8 @@
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

View File

@ -18,7 +18,7 @@ use OCP\Settings\ISettings;
class Admin implements ISettings { class Admin implements ISettings {
/** @var IL10N */ /** @var IL10N */
private $l10n; private $l;
/** @var IURLGenerator */ /** @var IURLGenerator */
private $urlGenerator; private $urlGenerator;
@ -27,7 +27,7 @@ class Admin implements ISettings {
* @param IL10N $l10n * @param IL10N $l10n
*/ */
public function __construct(IL10N $l10n, IURLGenerator $urlGenerator) { public function __construct(IL10N $l10n, IURLGenerator $urlGenerator) {
$this->l10n = $l10n; $this->l = $l10n;
$this->urlGenerator = $urlGenerator; $this->urlGenerator = $urlGenerator;
} }

View File

@ -0,0 +1,5 @@
<form id="weather">
<div class="section">
<h2><?php p($l->t('Weather')) ?></h2>
</div>
</form>