Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-13 11:19:09 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-13 11:19:09 +0300
commitc88707760e0f099df2f43f40ac9dc57c2267c302 (patch)
treed20996fb4049728629bc1ce17b3c8095303c70f8 /lib
parent75c185233fe8b1963ed7e20a5539396766624816 (diff)
parent2cf2f147be079dca2a1e7bae9415a7c7a6fd3846 (diff)
Merge remote-tracking branch 'origin/master' into enh/albums
Diffstat (limited to 'lib')
-rw-r--r--lib/AppInfo/Application.php4
-rw-r--r--lib/Controller/PageController.php5
2 files changed, 7 insertions, 2 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php
index 52139b4d..97ab98b4 100644
--- a/lib/AppInfo/Application.php
+++ b/lib/AppInfo/Application.php
@@ -28,9 +28,9 @@ use OCP\AppFramework\App;
class Application extends App {
- const appID = 'photos';
+ const APP_ID = 'photos';
public function __construct() {
- parent::__construct(self::appID);
+ parent::__construct(self::APP_ID);
}
}
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index 7f9538a6..8529441e 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -30,6 +30,7 @@ use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IRequest;
+use OCP\Util;
class PageController extends Controller {
@@ -58,6 +59,10 @@ class PageController extends Controller {
$this->eventDispatcher->dispatch(LoadSidebar::class, new LoadSidebar());
$this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer());
+
+ Util::addScript('photos', 'photos');
+ Util::addStyle('photos', 'icons');
+
$response = new TemplateResponse($this->appName, 'main');
return $response;
}