Changeset 26065 for extensions/GuestBook/admin/pending.php
- Timestamp:
- Dec 21, 2013, 5:33:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GuestBook/admin/pending.php
r24889 r26065 12 12 if (empty($_POST['comments'])) 13 13 { 14 array_push( 15 $page['errors'], 16 l10n('Select at least one comment') 17 ); 14 $page['errors'][] =l10n('Select at least one comment'); 18 15 } 19 16 else 20 17 { 21 include_once( GUESTBOOK_PATH .'include/functions_comment.inc.php');18 include_once(GUESTBOOK_PATH .'include/functions_comment.inc.php'); 22 19 check_input_parameter('comments', $_POST, true, PATTERN_ID); 23 20 … … 26 23 validate_user_comment_guestbook($_POST['comments']); 27 24 28 array_push( 29 $page['infos'], 30 l10n_dec( 31 '%d user comment validated', '%d user comments validated', 32 count($_POST['comments']) 33 ) 25 $page['infos'][] = l10n_dec( 26 '%d user comment validated', '%d user comments validated', 27 count($_POST['comments']) 34 28 ); 35 29 } … … 39 33 delete_user_comment_guestbook($_POST['comments']); 40 34 41 array_push( 42 $page['infos'], 43 l10n_dec( 44 '%d user comment rejected', '%d user comments rejected', 45 count($_POST['comments']) 46 ) 35 $page['infos'][] =l10n_dec( 36 '%d user comment rejected', '%d user comments rejected', 37 count($_POST['comments']) 47 38 ); 48 39 } … … 75 66 ;'; 76 67 $result = pwg_query($query); 68 77 69 while ($row = pwg_db_fetch_assoc($result)) 78 70 { … … 101 93 ); 102 94 103 array_push($list, $row['id']);95 $list[] = $row['id']; 104 96 } 105 97 106 $template->assign('LIST', implode(',', $list) );107 98 108 $template->assign('F_ACTION', GUESTBOOK_ADMIN . '-pending'); 109 99 $template->assign(array( 100 'LIST' => implode(',', $list), 101 'F_ACTION' => GUESTBOOK_ADMIN . '-pending', 102 )); 110 103 111 104 $template->set_filename('guestbook', realpath(GUESTBOOK_PATH . 'admin/template/pending.tpl')); 112 113 ?>
Note: See TracChangeset
for help on using the changeset viewer.