Ignore:
Timestamp:
Jan 16, 2007, 11:23:05 PM (18 years ago)
Author:
rub
Message:

Very little/small corrections:

o bad parser word user on installation
o standardization of the method to open link in new tab/windows
o removed not used constant
o use/add link constants
o use new function pwg_URL
o add missing translation

File:
1 edited

Legend:

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

    r1724 r1726  
    19111911  if ($count != 0)
    19121912  {
     1913    $pwg_links = pwg_URL();
     1914    $link_fmt = '<a href="%s" onclick="window.open(this.href, \'\'); return false;">%s</a>';
    19131915    $header_notes[] =
    19141916      sprintf
    19151917      (
    19161918        l10n('note_check_more_info'),
    1917         sprintf('<a href="http://forum.phpwebgallery.net/" target="_blank"> %s</a>', l10n('note_check_more_info_forum')),
    1918         sprintf('<a href="http://phpwebgallery.net/doc/" target="_blank"> %s</a>', l10n('note_check_more_info_wiki'))
     1919        sprintf($link_fmt, $pwg_links['FORUM'], l10n('note_check_more_info_forum')),
     1920        sprintf($link_fmt, $pwg_links['WIKI'], l10n('note_check_more_info_wiki'))
    19191921      );
    19201922  }
     
    19221924
    19231925/**
    1924  * Refer main PhpWebGallery URLs (currently phpwebgallery.net domain)
     1926 * Refer main PhpWebGallery URLs (currently PHPWG_DOMAIN domain)
    19251927 *
    19261928 * @param void
     
    19311933  global $lang_info;
    19321934  $urls = array(
    1933     'WIKI'       => 'http://phpwebgallery.net/doc/',
    1934     'HOME'       => 'http://phpwebgallery.net/',
    1935     'DEMO'       => 'http://demo.phpwebgallery.net/',
    1936     'FORUM'      => 'http://forum.phpwebgallery.net/',
    1937     'BUGS'       => 'http://bugs.phpwebgallery.net/',
    1938     'EXTENSIONS' => 'http://phpwebgallery.net/ext',
     1935    'WIKI'       => 'http://'.PHPWG_DOMAIN.'/doc/',
     1936    'HOME'       => 'http://'.PHPWG_DOMAIN.'/',
     1937    'DEMO'       => 'http://demo.'.PHPWG_DOMAIN.'/',
     1938    'FORUM'      => 'http://forum.'.PHPWG_DOMAIN.'/',
     1939    'BUGS'       => 'http://bugs.'.PHPWG_DOMAIN.'/',
     1940    'EXTENSIONS' => 'http://'.PHPWG_DOMAIN.'/ext',
    19391941    );
    19401942  if ( isset($lang_info['code']) and
    19411943       in_array($lang_info['code'], array('fr','en')) )
    19421944  { /* current wiki languages are French or English */
    1943     $urls['WIKI'] =
    1944       'http://phpwebgallery.net/doc/doku.php?id='.$lang_info['code'].':start';
    1945     $urls['HOME'] = 'http://phpwebgallery.net/?lang='.$lang_info['code'];
     1945    $urls['WIKI'] .= 'doku.php?id='.$lang_info['code'].':start';
     1946    $urls['HOME'] .= '?lang='.$lang_info['code'];
    19461947  }
    19471948  return $urls;
Note: See TracChangeset for help on using the changeset viewer.