aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-01-30 22:07:07 +0000
committerrub <rub@piwigo.org>2008-01-30 22:07:07 +0000
commit69159c0e9238fd369dca2181af6fb9de47b14440 (patch)
tree545ea813c006506d1bde84e0da8cc5f7b686cd03 /include/common.inc.php
parentd5015da6ec45bbb08732b28dfbfe9e089504c08d (diff)
Replace old use of $lang by l10n function.
git-svn-id: http://piwigo.org/svn/trunk@2201 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 50c0d73fa..141e24521 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -184,7 +184,7 @@ load_language('local.lang');
// include/user.inc.php)
if (is_a_guest())
{
- $user['username'] = $lang['guest'];
+ $user['username'] = l10n('guest');
}
// template instance
@@ -213,13 +213,13 @@ if (isset($user['internal_status']['guest_must_be_guest'])
if ($conf['gallery_locked'])
{
- $header_msgs[] = $lang['gallery_locked_message'];
+ $header_msgs[] = l10n('gallery_locked_message');
if ( script_basename() != 'identification' and !is_admin() )
{
set_status_header(503, 'Service Unavailable');
@header('Retry-After: 900');
- echo $lang['gallery_locked_message']
+ echo l10n('gallery_locked_message')
.'<a href="'.get_absolute_root_url(false).'identification.php">.</a>';
exit();
}
@@ -250,7 +250,7 @@ SELECT id
if (is_adviser())
{
- $header_msgs[] = $lang['adviser_mode_enabled'];
+ $header_msgs[] = l10n('adviser_mode_enabled');
}
if (count($header_msgs) > 0)