aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 23:19:39 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 23:19:39 +0200
commite48f511606a1ef64aa39099055dd6ae437f45d03 (patch)
tree6ecbbc9c14cb621845fc12af9412e24d17168397 /apps/files
parent31e32e3c10ace169e0d841ff6e4b17d11fe64f1b (diff)
downloadnextcloud-server-e48f511606a1ef64aa39099055dd6ae437f45d03.tar.gz
nextcloud-server-e48f511606a1ef64aa39099055dd6ae437f45d03.zip
port linkto and serverHost
Diffstat (limited to 'apps/files')
-rwxr-xr-x[-rw-r--r--]apps/files/appinfo/app.php2
-rwxr-xr-xapps/files/index.php6
-rwxr-xr-x[-rw-r--r--]apps/files/templates/index.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php
index c4a2ee7407a..40523521d9c 100644..100755
--- a/apps/files/appinfo/app.php
+++ b/apps/files/appinfo/app.php
@@ -5,6 +5,6 @@ $l=OC_L10N::get('files');
OC_App::register( array( "order" => 2, "id" => "files", "name" => "Files" ));
-OC_App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OC_Helper::linkTo( "files", "index.php" ), "icon" => OC_Helper::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") ));
+OC_App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OC_Helper::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") ));
OC_Search::registerProvider('OC_Search_Provider_File');
diff --git a/apps/files/index.php b/apps/files/index.php
index 2d3b0a13b25..9634a725866 100755
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -74,11 +74,11 @@ foreach( explode( "/", $dir ) as $i ){
// make breadcrumb und filelist markup
$list = new OC_Template( "files", "part.list", "" );
$list->assign( "files", $files );
-$list->assign( "baseURL", OC_Helper::linkTo("files", "index.php")."?dir=");
-$list->assign( "downloadURL", OC_Helper::linkTo("files", "download.php")."?file=");
+$list->assign( "baseURL", OCP\Util::linkTo("files", "index.php")."?dir=");
+$list->assign( "downloadURL", OCP\Util::linkTo("files", "download.php")."?file=");
$breadcrumbNav = new OC_Template( "files", "part.breadcrumb", "" );
$breadcrumbNav->assign( "breadcrumb", $breadcrumb );
-$breadcrumbNav->assign( "baseURL", OC_Helper::linkTo("files", "index.php")."?dir=");
+$breadcrumbNav->assign( "baseURL", OCP\Util::linkTo("files", "index.php")."?dir=");
$upload_max_filesize = OC_Helper::computerFileSize(ini_get('upload_max_filesize'));
$post_max_size = OC_Helper::computerFileSize(ini_get('post_max_size'));
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index fc385e1ed3a..25193648387 100644..100755
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -12,7 +12,7 @@
</ul>
</div>
<div class="file_upload_wrapper svg">
- <form data-upload-id='1' class="file_upload_form" action="<?php echo OC_Helper::linkto('files', 'ajax/upload.php'); ?>" method="post" enctype="multipart/form-data" target="file_upload_target_1">
+ <form data-upload-id='1' class="file_upload_form" action="<?php echo OCP\Util::linkTo('files', 'ajax/upload.php'); ?>" method="post" enctype="multipart/form-data" target="file_upload_target_1">
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
<input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
<input type="hidden" name="dir" value="<?php echo htmlentities($_['dir']) ?>" id="dir">