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.

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.