Changeset 26090 for extensions/Comments_on_Albums
- Timestamp:
- Dec 22, 2013, 8:33:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Comments_on_Albums/trunk/include/coa_comments_page.php
r26089 r26090 38 38 39 39 // 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')); 41 41 42 42 // sort_by : database fields proposed for sorting comments list … … 46 46 'category_id' => l10n('Album') 47 47 ); 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); 52 49 53 50 // clean where_clauses from unknown column … … 365 362 $template->set_prefilter('comments', 'coa_change_comments_list'); 366 363 367 function coa_change_comments_list($content, &$smarty) { 368 $search = '<a href="{$comment.U_PICTURE}">'; 369 $replacement = $search.'{$comment.ALT}<br>'; 364 function 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]; 370 370 return str_replace($search, $replacement, $content); 371 371 }
Note: See TracChangeset
for help on using the changeset viewer.