actually register html template
This commit is contained in:
parent
a0243e03ef
commit
d91104e120
|
@ -5,11 +5,11 @@ $l = OC_L10N::get('files');
|
||||||
|
|
||||||
OCP\App::registerAdmin('files', 'admin');
|
OCP\App::registerAdmin('files', 'admin');
|
||||||
|
|
||||||
OCP\App::addNavigationEntry( array( "id" => "files_index",
|
OCP\App::addNavigationEntry(array("id" => "files_index",
|
||||||
"order" => 0,
|
"order" => 0,
|
||||||
"href" => OCP\Util::linkTo( "files", "index.php" ),
|
"href" => OCP\Util::linkTo("files", "index.php"),
|
||||||
"icon" => OCP\Util::imagePath( "core", "places/files.svg" ),
|
"icon" => OCP\Util::imagePath("core", "places/files.svg"),
|
||||||
"name" => $l->t("Files") ));
|
"name" => $l->t("Files")));
|
||||||
|
|
||||||
OC_Search::registerProvider('OC_Search_Provider_File');
|
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');
|
\OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook');
|
||||||
|
|
||||||
\OCP\BackgroundJob::addRegularTask('\OC\Files\Cache\BackgroundWatcher', 'checkNext');
|
\OCP\BackgroundJob::addRegularTask('\OC\Files\Cache\BackgroundWatcher', 'checkNext');
|
||||||
|
|
||||||
|
$templateManager = OC_Helper::getFileTemplateManager();
|
||||||
|
$templateManager->registerTemplate('text/html', 'core/templates/filetemplates/template.html');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue