Ignore:
Timestamp:
Jan 30, 2008, 11:07:07 PM (16 years ago)
Author:
rub
Message:

Replace old use of $lang by l10n function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r2182 r2201  
    5555    {
    5656      $icons = array(false => 'recent', true => 'recent_by_child' );
    57       $title = $lang['recent_image'].' '.$user['recent_period']
    58           .' '.$lang['days'];
     57      $title = l10n('recent_image').' '.$user['recent_period']
     58          .' '.l10n('days');
    5959      foreach ($icons as $key => $icon)
    6060      {
     
    107107      $navbar.=
    108108        '<a href="'.$url.'" rel="start">'
    109         .$lang['first_page']
     109        .l10n('first_page')
    110110        .'</a>';
    111111    }
    112112    else
    113113    {
    114       $navbar.= $lang['first_page'];
     114      $navbar.= l10n('first_page');
    115115    }
    116116    $navbar.= ' | ';
     
    124124        .$url.($previous > 0 ? $start_str.$previous : '')
    125125        .'" rel="prev">'
    126         .$lang['previous_page']
     126        .l10n('previous_page')
    127127        .'</a>';
    128128    }
    129129    else
    130130    {
    131       $navbar.= $lang['previous_page'];
     131      $navbar.= l10n('previous_page');
    132132    }
    133133    $navbar.= ' |';
     
    195195      $navbar.=
    196196        '<a href="'.$url.$start_str.$next.'" rel="next">'
    197         .$lang['next_page']
     197        .l10n('next_page')
    198198        .'</a>';
    199199    }
    200200    else
    201201    {
    202       $navbar.= $lang['next_page'];
     202      $navbar.= l10n('next_page');
    203203    }
    204204
     
    211211      $navbar.=
    212212        '<a href="'.$url.$start_str.$temp_start.'" rel="last">'
    213         .$lang['last_page']
     213        .l10n('last_page')
    214214        .'</a>';
    215215    }
    216216    else
    217217    {
    218       $navbar.= $lang['last_page'];
     218      $navbar.= l10n('last_page');
    219219    }
    220220  }
     
    567567  if ( isset($user) and !is_a_guest() )
    568568  {
    569     echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
    570     echo '<a href="'.get_root_url().'identification.php">'.$lang['identification'].'</a>&nbsp;';
    571     echo '<a href="'.make_index_url().'">'.$lang['home'].'</a></div>';
     569    echo '<div style="text-align:center;">'.l10n('access_forbiden').'<br />';
     570    echo '<a href="'.get_root_url().'identification.php">'.l10n('identification').'</a>&nbsp;';
     571    echo '<a href="'.make_index_url().'">'.l10n('home').'</a></div>';
    572572    exit();
    573573  }
Note: See TracChangeset for help on using the changeset viewer.