Changeset 3108 for trunk/include


Ignore:
Timestamp:
Jan 22, 2009, 3:19:17 AM (15 years ago)
Author:
rvelices
Message:
  • fix hard coded urls in section_init
  • moved a language string language from php to tpl
File:
1 edited

Legend:

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

    r3049 r3108  
    381381    );
    382382
    383     if (!empty($_GET['action'])
    384         && ($_GET['action'] == 'remove_all_from_favorites'))
     383    if (!empty($_GET['action']) && ($_GET['action'] == 'remove_all_from_favorites'))
    385384    {
    386385      $query = '
     
    389388;';
    390389      pwg_query($query);
    391       redirect('index.php?/favorites');
    392     }
    393     else 
     390      redirect(make_index_url( array('section'=>'favorites') ));
     391    }
     392    else
    394393    {
    395394      $query = '
     
    415414      );
    416415
    417       if (count($page['items'])>0) 
     416      if (count($page['items'])>0)
    418417      {
    419418        $template->assign(
     
    422421            'FAVORITE_IMG'  =>
    423422            get_root_url().get_themeconf('icon_dir').'/del_all_favorites.png',
    424             'FAVORITE_HINT' => l10n('del_all_favorites_hint'),
    425423            'U_FAVORITE'    => add_url_params(
    426               'index.php?/favorites',
     424              make_index_url( array('section'=>'favorites') ),
    427425              array('action'=>'remove_all_from_favorites')
    428426               ),
Note: See TracChangeset for help on using the changeset viewer.