Changeset 12524


Ignore:
Timestamp:
Oct 27, 2011, 6:21:30 PM (13 years ago)
Author:
patdenice
Message:

Lastcom actions works even if block is set only on home page.

Location:
extensions/PWG_Stuffs/trunk
Files:
2 edited

Legend:

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

    r12401 r12524  
    7171
    7272    case 'index':
    73       if (count($tokens) == 1 and empty($tokens[0]))
     73      $actions = array('delete_comment', 'validate_comment', 'edit_comment', '');
     74      if (count($tokens) == 1 and in_array($tokens[0], $actions))
    7475      {
    7576        $page['stuffs_section'] = 'on_home';
  • extensions/PWG_Stuffs/trunk/modules/LastComs/main.inc.php

    r12515 r12524  
    7676        .get_query_string_diff(array('delete_comment','validate_comment','edit_comment','pwg_token'));
    7777
    78       redirect($redirect_url);
     78      redirect(rtrim($redirect_url, '='));
    7979    }
    8080  }
Note: See TracChangeset for help on using the changeset viewer.