Skip to content

Commit

Permalink
Use new API for pages with multiple redirection links
Browse files Browse the repository at this point in the history
- bug_report.php
- news_update.php

Fixes #21683
  • Loading branch information
dregad committed Sep 21, 2016
1 parent d14b308 commit 3f61062
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
13 changes: 4 additions & 9 deletions bug_report.php
Expand Up @@ -322,16 +322,11 @@
}
}
}
?>

<div class="col-md-12 col-xs-12">
<div class="space-10"></div>
<div class="alert alert-success">

<?php
echo '<p>' . lang_get( 'operation_successful' ) . '</p><br />';
print_button( string_get_bug_view_url( $t_bug_id ), sprintf( lang_get( 'view_submitted_bug_link' ), $t_bug_id ) );
print_button( 'view_all_bug_page.php', lang_get( 'view_bugs_link' ) );
html_operation_successful_buttons( array(
array( string_get_bug_view_url( $t_bug_id ), sprintf( lang_get( 'view_submitted_bug_link' ), $t_bug_id ) ),
array( 'view_all_bug_page.php', lang_get( 'view_bugs_link' ) ),
) );

if( $f_report_stay ) {
?>
Expand Down
15 changes: 4 additions & 11 deletions news_update.php
Expand Up @@ -69,17 +69,10 @@

echo '<div class="space-20"></div>';

echo '<div class="container-fluid">';
echo '<div class="col-md-12 col-xs-12">';
echo '<div class="alert alert-success">';
echo lang_get( 'operation_successful' );
echo '<br /><br />';
print_button( 'news_edit_page.php?news_id=' . $f_news_id . '&action=edit', lang_get( 'edit_link' ) );
echo '&nbsp;&nbsp;&nbsp;&nbsp;';
print_button( 'news_menu_page.php', lang_get( 'proceed' ) );
echo '</div>';
echo '</div>';
echo '</div>';
html_operation_successful_buttons( array(
array( 'news_menu_page.php' ),
array( 'news_edit_page.php?news_id=' . $f_news_id . '&action=edit', lang_get( 'edit_link' ) ),
) );

echo '<br />';

Expand Down

0 comments on commit 3f61062

Please sign in to comment.