Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-18 09:56:42 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-18 09:56:42 +0300
commit228a75e2ec467770dcfea92e02cd29a63b4dbdd6 (patch)
tree610508e454d1fc23c1b3df7c36cc9fc191f44092 /settings
parentd77019f566725a3f5e6e696c1e23797596e32090 (diff)
parent2a280e2fad5b69dd0e828ca168f0dcfcd0a1ae5d (diff)
Merge pull request #21248 from owncloud/deprecated_oc_helper_linkToRoute
Replace deprecated OC_Helper::linkToRoute calls
Diffstat (limited to 'settings')
-rw-r--r--settings/help.php4
-rw-r--r--settings/templates/personal.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/settings/help.php b/settings/help.php
index 60719a3df92..21b48242706 100644
--- a/settings/help.php
+++ b/settings/help.php
@@ -43,8 +43,8 @@ if(isset($_GET['mode']) and $_GET['mode'] === 'admin') {
$style2='';
}
-$url1=OC_Helper::linkToRoute( "settings_help" ).'?mode=user';
-$url2=OC_Helper::linkToRoute( "settings_help" ).'?mode=admin';
+$url1=\OC::$server->getURLGenerator()->linkToRoute('settings_help').'?mode=user';
+$url2=\OC::$server->getURLGenerator()->linkToRoute('settings_help').'?mode=admin';
$tmpl = new OC_Template( "settings", "help", "user" );
$tmpl->assign( "admin", OC_User::isAdminUser(OC_User::getUser()));
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index 09194ea3e39..446494c934b 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -149,7 +149,7 @@ if($_['passwordChangeSupported']) {
</div>
<?php if ($_['enableAvatars']): ?>
-<form id="avatar" class="section" method="post" action="<?php p(\OC_Helper::linkToRoute('core.avatar.postAvatar')); ?>">
+<form id="avatar" class="section" method="post" action="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.postAvatar')); ?>">
<h2><?php p($l->t('Profile picture')); ?></h2>
<div id="displayavatar">
<div class="avatardiv"></div><br>