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
path: root/core
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-07-03 16:21:51 +0400
committerBjörn Schießle <schiessle@owncloud.com>2013-07-03 16:21:51 +0400
commit7bc3edae0a719b684fe7630073ad72cce1c33bde (patch)
tree6a451fdef98b9fe9f9aa56b850e513e8bf4afcd6 /core
parentf155826dc226c0456d6a13e5c8bc03228e688d71 (diff)
move to non-static OC_Defaults
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.base.php4
-rw-r--r--core/templates/layout.guest.php8
-rw-r--r--core/templates/layout.user.php6
3 files changed, 9 insertions, 9 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php
index 51bac790741..09e1006d507 100644
--- a/core/templates/layout.base.php
+++ b/core/templates/layout.base.php
@@ -6,11 +6,11 @@
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
- <?php OC_Defaults::init(); // initialize themable default strings and urls ?>
+ <?php $defaults = new OC_Defaults(); // initialize themable default strings and urls ?>
<head>
<title>
- <?php p(OC_Defaults::getName()); ?>
+ <?php p($defaults->getName()); ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>" />
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index b17e2fc547c..329744e3824 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -6,11 +6,11 @@
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
- <?php OC_Defaults::init(); // initialize themable default strings and urls ?>
+ <?php $defaults = new OC_Defaults(); // initialize themable default strings and urls ?>
<head data-requesttoken="<?php p($_['requesttoken']); ?>">
<title>
- <?php p(OC_Defaults::getName()); ?>
+ <?php p($defaults->getName()); ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-itunes-app" content="app-id=543672169">
@@ -38,13 +38,13 @@
<div id="login">
<header><div id="header">
<img src="<?php print_unescaped(image_path('', 'logo.svg')); ?>" class="svg" alt="ownCloud" />
- <div id="logo-claim" style="display:none;"><?php p(OC_Defaults::getLogoClaim()); ?></div>
+ <div id="logo-claim" style="display:none;"><?php p($defaults->getLogoClaim()); ?></div>
</div></header>
<?php print_unescaped($_['content']); ?>
</div>
<footer>
<p class="info">
- <?php print_unescaped(OC_Defaults::getLongFooter()); ?>
+ <?php print_unescaped($defaults->getLongFooter()); ?>
</p></footer>
</body>
</html>
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 3766e687925..234037b543e 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -6,12 +6,12 @@
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
- <?php OC_Defaults::init(); // initialize themable default strings and urls ?>
+ <?php $defaults = new OC_Defaults(); // initialize themable default strings and urls ?>
<head data-user="<?php p($_['user_uid']); ?>" data-requesttoken="<?php p($_['requesttoken']); ?>">
<title>
<?php p(!empty($_['application'])?$_['application'].' | ':'');
- p(OC_Defaults::getName());
+ p($defaults->getName());
p(trim($_['user_displayname']) != '' ?' ('.$_['user_displayname'].') ':'') ?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@@ -42,7 +42,7 @@
<header><div id="header">
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud"><img class="svg"
src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="ownCloud" /></a>
- <div id="logo-claim" style="display:none;"><?php p(OC_Defaults::getLogoClaim()); ?></div>
+ <div id="logo-claim" style="display:none;"><?php p($defaults->getLogoClaim()); ?></div>
<ul id="settings" class="svg">
<span id="expand">
<span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>