Ignore:
Timestamp:
Mar 14, 2013, 5:07:15 PM (11 years ago)
Author:
mistic100
Message:

restore breadcrumb tweak when there is a homepage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/trunk/main.inc.php

    r21203 r21550  
    7070  if ($tokens[0] == 'additional_page' and !empty($tokens[1]))
    7171    redirect(make_index_url(array('section'=>'page')).'/'.$tokens[1]);
     72   
     73  if (!is_null($conf['AP']['homepage']))
     74  {
     75    $albums_url = make_index_url(array('section' => 'categories'));
     76   
     77    $page['section_title'] = preg_replace(
     78      '#/a>#',
     79      '/a>'.$conf['level_separator'].'<a href="'.$albums_url.'">'.l10n('Albums').'</a>',
     80      $page['section_title'],
     81      1 // only replace the first occurence of "a/>"
     82      );
     83  }
    7284}
    7385
Note: See TracChangeset for help on using the changeset viewer.