nextcloud/apps/files/appinfo/app.php

14 lines
611 B
PHP
Raw Normal View History

<?php
2011-10-02 01:48:00 +04:00
2012-04-14 18:44:15 +04:00
$l=OC_L10N::get('files');
2011-08-09 19:54:02 +04:00
2012-05-02 02:50:26 +04:00
OCP\App::register( array( "order" => 2, "id" => "files", "name" => "Files" ));
OCP\App::registerAdmin('files','admin');
2011-03-04 01:08:11 +03:00
2012-05-02 02:50:26 +04:00
OCP\App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") ));
2011-04-17 22:00:07 +04:00
OC_Search::registerProvider('OC_Search_Provider_File');
2012-05-05 20:29:02 +04:00
if(!file_exists(OC::$SERVERROOT.'/remote/webdav.php')){
2012-05-05 22:43:11 +04:00
file_put_contents(OC::$SERVERROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/remote.php'));
2012-05-05 20:29:02 +04:00
}