Skip to content

Commit

Permalink
MDL-48921 admin: Keep the search string in the URL after form submission
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Jan 21, 2015
1 parent 146c80d commit 5634dcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@

$resultshtml = admin_search_settings_html($query); // case insensitive search only

echo '<form action="search.php" method="post" id="adminsettings">';
echo '<form action="' . $PAGE->url->out(true) . '" method="post" id="adminsettings">';
echo '<div>';
echo '<input type="hidden" name="sesskey" value="'.sesskey().'" />';
echo '<input type="hidden" name="query" value="'.s($query).'" />';
echo '</div>';
echo '<fieldset>';
echo '<div class="clearer"><!-- --></div>';
Expand Down

0 comments on commit 5634dcb

Please sign in to comment.