Changeset 26090


Ignore:
Timestamp:
12/22/13 20:33:22 (5 years ago)
Author:
mistic100
Message:

query string ignored in GET form action

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/include/coa_comments_page.php

    r26089 r26090  
    3838 
    3939// reset some template vars 
    40 $template->clear_assign(array('F_ACTION', 'comments', 'navbar', 'sort_by_options')); 
     40$template->clear_assign(array('comments', 'navbar', 'sort_by_options')); 
    4141 
    4242// sort_by : database fields proposed for sorting comments list 
     
    4646  'category_id' => l10n('Album') 
    4747  ); 
    48 $template->assign(array( 
    49   'F_ACTION' => PHPWG_ROOT_PATH.'comments.php?display_mode=albums', 
    50   'sort_by_options' => $sort_by, 
    51   )); 
     48$template->assign('sort_by_options', $sort_by); 
    5249 
    5350// clean where_clauses from unknown column 
     
    365362$template->set_prefilter('comments', 'coa_change_comments_list'); 
    366363 
    367 function coa_change_comments_list($content, &$smarty) { 
    368   $search = '<a href="{$comment.U_PICTURE}">'; 
    369   $replacement = $search.'{$comment.ALT}<br>'; 
     364function coa_change_comments_list($content) 
     365{ 
     366  $search[0] = '<a href="{$comment.U_PICTURE}">'; 
     367  $replacement[0] = $search[0].'{$comment.ALT}<br>'; 
     368  $search[1] = '<input type="submit"'; 
     369  $replacement[1] = '<input type=hidden name=display_mode value=albums>'.$search[1]; 
    370370  return str_replace($search, $replacement, $content); 
    371371} 
Note: See TracChangeset for help on using the changeset viewer.