Admin Settings: Add missing template & do some more fixes
parent
6c808d3df0
commit
2fe7fad749
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<form id="weather">
|
||||
<div class="section">
|
||||
<h2><?php p($l->t('Weather')) ?></h2>
|
||||
</div>
|
||||
</form>
|
Loading…
Reference in New Issue