]> source.dussan.org Git - nextcloud-server.git/commitdiff
actually register html template
authorRobin Appelman <icewind@owncloud.com>
Wed, 7 Aug 2013 21:48:44 +0000 (23:48 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 7 Aug 2013 21:48:44 +0000 (23:48 +0200)
apps/files/appinfo/app.php

index 99739cb4cee71461bf43d1a6f0e8143b7e8939a4..aa839b81d1816c67a5ade7b711e6676da7414b4b 100644 (file)
@@ -5,11 +5,11 @@ $l = OC_L10N::get('files');
 
 OCP\App::registerAdmin('files', 'admin');
 
-OCP\App::addNavigationEntry( array( "id" => "files_index",
-                                                                       "order" => 0,
-                                                                       "href" => OCP\Util::linkTo( "files", "index.php" ),
-                                                                       "icon" => OCP\Util::imagePath( "core", "places/files.svg" ),
-                                                                       "name" => $l->t("Files") ));
+OCP\App::addNavigationEntry(array("id" => "files_index",
+       "order" => 0,
+       "href" => OCP\Util::linkTo("files", "index.php"),
+       "icon" => OCP\Util::imagePath("core", "places/files.svg"),
+       "name" => $l->t("Files")));
 
 OC_Search::registerProvider('OC_Search_Provider_File');
 
@@ -21,3 +21,7 @@ OC_Search::registerProvider('OC_Search_Provider_File');
 \OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook');
 
 \OCP\BackgroundJob::addRegularTask('\OC\Files\Cache\BackgroundWatcher', 'checkNext');
+
+$templateManager = OC_Helper::getFileTemplateManager();
+$templateManager->registerTemplate('text/html', 'core/templates/filetemplates/template.html');
+