From 75fd6d4fde4cd6d9eda5e6b944739f1f2798447d Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Wed, 24 Jul 2013 11:51:21 +0200 Subject: initialize OC_Defaults in template constructorX --- settings/templates/admin.php | 12 +++++------- settings/templates/personal.php | 8 +++----- 2 files changed, 8 insertions(+), 12 deletions(-) (limited to 'settings') diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 52127f6710d..2b14c1460d6 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -4,8 +4,6 @@ * See the COPYING-README file. */ $levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal'); - -$defaults = new OC_Defaults(); // initialize themable default strings and urls ?> t('Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.')); ?> - t('Please double check the installation guides.', $defaults->getDocBaseUrl().'/server/5.0/admin_manual/installation.html')); ?> + t('Please double check the installation guides.', $theme->getDocBaseUrl().'/server/5.0/admin_manual/installation.html')); ?> @@ -193,13 +191,13 @@ if (!$_['internetconnectionworking']) {
t( 'Forces the clients to connect to %s via an encrypted connection.', - $defaults->getName() + $theme->getName() )); ?> "); p($l->t( 'Please connect to your %s via HTTPS to enable or disable the SSL enforcement.', - $defaults->getName() + $theme->getName() )); print_unescaped(""); } @@ -250,7 +248,7 @@ endfor;?>
t('Version'));?> - getTitle()); ?> + getTitle()); ?>

t('Developed by the ownCloud community, the source code is licensed under the AGPL.')); ?> @@ -259,6 +257,6 @@ endfor;?>

diff --git a/settings/templates/personal.php b/settings/templates/personal.php index ee5ebae708f..b9d9b09f5d0 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -4,8 +4,6 @@ * See the COPYING-README file. */?> - -

t('Get the apps to sync your files'));?>

@@ -105,7 +103,7 @@ if($_['passwordChangeSupported']) {
t('WebDAV'));?>
- t('Use this address to
access your Files via WebDAV', array($defaults->getDocBaseUrl())));?> + t('Use this address to access your Files via WebDAV', array($theme->getDocBaseUrl())));?>
t('Version'));?> - getName()); ?>
+ getName()); ?>
t('Developed by the ownCloud community, the source code is licensed under the AGPL.')); ?> -- cgit v1.2.3