Changeset 3197 for trunk/admin


Ignore:
Timestamp:
Mar 14, 2009, 12:43:50 AM (15 years ago)
Author:
plg
Message:

merge r3196 from branch 2.0 to trunk

bug 926 fixed: change links to piwigo.org so that they go to existing URLs.

new: if the current language is french, the links go to fr.piwigo.org instead.

Location:
trunk/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r3145 r3197  
    17421742function pwg_URL()
    17431743{
    1744   global $lang_info;
    17451744  $urls = array(
    1746     'WIKI'       => 'http://'.PHPWG_DOMAIN.'/doc/',
    1747     'HOME'       => 'http://'.PHPWG_DOMAIN.'/',
    1748     'DEMO'       => 'http://demo.'.PHPWG_DOMAIN.'/',
    1749     'FORUM'      => 'http://forum.'.PHPWG_DOMAIN.'/',
    1750     'BUGS'       => 'http://bugs.'.PHPWG_DOMAIN.'/',
     1745    'HOME'       => 'http://'.PHPWG_DOMAIN,
     1746    'WIKI'       => 'http://'.PHPWG_DOMAIN.'/doc',
     1747    'DEMO'       => 'http://'.PHPWG_DOMAIN.'/demo',
     1748    'FORUM'      => 'http://'.PHPWG_DOMAIN.'/forum',
     1749    'BUGS'       => 'http://'.PHPWG_DOMAIN.'/bugs',
    17511750    'EXTENSIONS' => 'http://'.PHPWG_DOMAIN.'/ext',
    17521751    );
    1753   if ( isset($lang_info['code']) and
    1754        in_array($lang_info['code'], array('fr','en')) )
    1755   { /* current wiki languages are French or English */
    1756     $urls['WIKI'] .= 'doku.php?id='.$lang_info['code'].':'.$lang_info['code'];
    1757     $urls['HOME'] .= '?lang='.$lang_info['code'];
    1758   }
    17591752  return $urls;
    17601753}
  • trunk/admin/intro.php

    r3133 r3197  
    183183$template->assign(
    184184  array(
     185    'PHPWG_URL' => PHPWG_URL,
    185186    'PWG_VERSION' => PHPWG_VERSION,
    186187    'OS' => PHP_OS,
  • trunk/admin/template/goto/footer.tpl

    r2614 r3197  
    1616
    1717  {'powered_by'|@translate}
    18   <a href="http://piwigo.org" class="Piwigo">
     18  <a href="{$PHPWG_URL}" class="Piwigo">
    1919  <span class="Piwigo">Piwigo</span></a>
    2020  {$VERSION}
  • trunk/admin/template/goto/intro.tpl

    r3185 r3197  
    55  <dd>
    66    <ul>
    7       <li><a href="http://piwigo.org"  onclick="window.open(this.href, '');
     7      <li><a href="{$PHPWG_URL}"  onclick="window.open(this.href, '');
    88          return false;">Piwigo</a> {$PWG_VERSION}</li>
    99      <li><a href="{$U_CHECK_UPGRADE}">{'Check for upgrade'|@translate}</a></li>
Note: See TracChangeset for help on using the changeset viewer.