Ignore:
Timestamp:
May 28, 2010, 9:58:51 PM (14 years ago)
Author:
rvelices
Message:

merge r6368,6410 from branch-2.1 to trunk

  • merged the linkroot integration with the existing gallery_url (unique $confgallery_url used for RSS, mail homepage root in the browse path)
  • added an option $confdebug_mail - if set all outgoing mails are saved into local_data_dir
File:
1 edited

Legend:

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

    r6363 r6411  
    5959  if ($with_scheme)
    6060  {
    61     if (isset($_SERVER['HTTPS']) && 
     61    if (isset($_SERVER['HTTPS']) &&
    6262        ((strtolower($_SERVER['HTTPS']) == 'on') or ($_SERVER['HTTPS'] == 1)))
    6363    {
     
    728728}
    729729
     730/**
     731 * Returns the 'home page' of this gallery
     732 */
     733function get_gallery_home_url()
     734{
     735  global $conf;
     736  if (!empty($conf['gallery_url']))
     737  {
     738    if (url_is_remote($conf['gallery_url']) or strncmp($conf['gallery_url'], '/', 1)==0)
     739    {
     740      return $conf['gallery_url'];
     741    }
     742    return get_root_url().$conf['gallery_url'];
     743  }
     744  else
     745  {
     746    return make_index_url();
     747  }
     748}
    730749?>
Note: See TracChangeset for help on using the changeset viewer.