actually register html template
This commit is contained in:
parent
a0243e03ef
commit
d91104e120
1 changed files with 9 additions and 5 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue