Skip to content
Snippets Groups Projects
Commit 240ae462 authored by Thomas Müller's avatar Thomas Müller Committed by Lukas Reschke
Browse files

Fix js file load order

parent 21da6271
Branches
No related tags found
No related merge requests found
......@@ -119,6 +119,8 @@ class ViewController extends Controller {
* @throws \OCP\Files\NotFoundException
*/
public function index($dir = '', $view = '') {
$nav = new \OCP\Template('files', 'appnavigation', '');
// Load the files we need
\OCP\Util::addStyle('files', 'files');
\OCP\Util::addStyle('files', 'upload');
......@@ -169,8 +171,6 @@ class ViewController extends Controller {
// FIXME: Make non static
$storageInfo = $this->getStorageInfo();
$nav = new \OCP\Template('files', 'appnavigation', '');
\OCA\Files\App::getNavigationManager()->add(
[
'id' => 'favorites',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment