Changeset 3196 for branches/2.0/admin


Ignore:
Timestamp:
Mar 14, 2009, 12:37:34 AM (16 years ago)
Author:
plg
Message:

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 insted.

Location:
branches/2.0/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/include/functions.php

    r3147 r3196  
    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}
  • branches/2.0/admin/intro.php

    r3132 r3196  
    183183$template->assign(
    184184  array(
     185    'PHPWG_URL' => PHPWG_URL,
    185186    'PWG_VERSION' => PHPWG_VERSION,
    186187    'OS' => PHP_OS,
  • branches/2.0/admin/template/goto/footer.tpl

    r2614 r3196  
    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}
  • branches/2.0/admin/template/goto/intro.tpl

    r2658 r3196  
    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.