Fixed broken links in setup
Fixes #13133 Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
73ab7f380b
commit
8beb7f544e
@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog
|
||||
4.7.1 (not yet released)
|
||||
- issue #13132 Always execute tracking queries as controluser
|
||||
- issue #13125 Focus on SQL editor after inserting field name
|
||||
- issue #13133 Fixed broken links in setup
|
||||
|
||||
4.7.0 (2017-03-28)
|
||||
- patch #12233 [Display] Improve message when renaming database to same name
|
||||
|
||||
@ -45,6 +45,6 @@ if (PMA_ifSetOr($_POST['submit_clear'], '')) {
|
||||
// Show generated config file in a <textarea>
|
||||
//
|
||||
header('HTTP/1.1 303 See Other');
|
||||
header('Location: index.php' . URL::getCommonRaw() . '&page=config');
|
||||
header('Location: index.php' . URL::getCommonRaw(array('page' => 'config')));
|
||||
exit;
|
||||
}
|
||||
|
||||
@ -28,7 +28,6 @@ $all_languages = LanguageManager::getInstance()->sortedLanguages();
|
||||
|
||||
/** @var ConfigFile $cf */
|
||||
$cf = $GLOBALS['ConfigFile'];
|
||||
$separator = URL::getArgSeparator('html');
|
||||
|
||||
// message handling
|
||||
PMA_messagesBegin();
|
||||
@ -157,12 +156,10 @@ if ($cf->getServerCount() > 0) {
|
||||
echo '<td>' , htmlspecialchars($cf->getServerDSN($id)) , '</td>';
|
||||
echo '<td style="white-space: nowrap">';
|
||||
echo '<small>';
|
||||
echo '<a href="' , URL::getCommon() , $separator , 'page=servers'
|
||||
, $separator , 'mode=edit' , $separator , 'id=' , $id , '">'
|
||||
echo '<a href="' , URL::getCommon(array('page' => 'servers', 'mode' => 'edit', 'id' => $id)), '">'
|
||||
, __('Edit') , '</a>';
|
||||
echo ' | ';
|
||||
echo '<a href="' , URL::getCommon() , $separator , 'page=servers'
|
||||
, $separator , 'mode=remove' , $separator , 'id=' , $id , '">'
|
||||
echo '<a href="' , URL::getCommon(array('page' => 'servers', 'mode' => 'remove', 'id' => $id)), '">'
|
||||
, __('Delete') , '</a>';
|
||||
echo '</small>';
|
||||
echo '</td>';
|
||||
@ -270,6 +267,6 @@ echo '<div id="footer">';
|
||||
echo '<a href="../url.php?url=https://www.phpmyadmin.net/">' , __('phpMyAdmin homepage') , '</a>';
|
||||
echo '<a href="../url.php?url=https://www.phpmyadmin.net/donate/">'
|
||||
, __('Donate') , '</a>';
|
||||
echo '<a href="' , URL::getCommon() , $separator , 'version_check=1">'
|
||||
echo '<a href="' , URL::getCommon(array('version_check' => '1')), '">'
|
||||
, __('Check for latest version') , '</a>';
|
||||
echo '</div>';
|
||||
|
||||
@ -37,21 +37,18 @@ function PMA_Process_formset(FormDisplay $form_display)
|
||||
}
|
||||
|
||||
// form has errors, show warning
|
||||
$separator = URL::getArgSeparator('html');
|
||||
$page = isset($_GET['page']) ? htmlspecialchars($_GET['page']) : null;
|
||||
$formset = isset($_GET['formset']) ? htmlspecialchars($_GET['formset']) : null;
|
||||
$formset = $formset ? "{$separator}formset=$formset" : '';
|
||||
$formId = PMA_isValid($_GET['id'], 'numeric') ? $_GET['id'] : null;
|
||||
$page = isset($_GET['page']) ? $_GET['page'] : '';
|
||||
$formset = isset($_GET['formset']) ? $_GET['formset'] : '';
|
||||
$formId = PMA_isValid($_GET['id'], 'numeric') ? $_GET['id'] : '';
|
||||
if ($formId === null && $page == 'servers') {
|
||||
// we've just added a new server, get its id
|
||||
$formId = $form_display->getConfigFile()->getServerCount();
|
||||
}
|
||||
$formId = $formId ? "{$separator}id=$formId" : '';
|
||||
?>
|
||||
<div class="error">
|
||||
<h4><?php echo __('Warning') ?></h4>
|
||||
<?php echo __('Submitted form contains errors') ?><br />
|
||||
<a href="<?php echo URL::getCommon() , $separator ?>page=<?php echo $page , $formset , $formId , $separator ?>mode=revert">
|
||||
<a href="<?php echo URL::getCommon(array('page' => $page, 'formset' => $formset, 'id' => $formId, 'mode' => 'revert')) ?>">
|
||||
<?php echo __('Try to revert erroneous fields to their default values') ?>
|
||||
</a>
|
||||
</div>
|
||||
@ -60,7 +57,7 @@ function PMA_Process_formset(FormDisplay $form_display)
|
||||
<?php echo __('Ignore errors') ?>
|
||||
</a>
|
||||
|
||||
<a class="btn" href="<?php echo URL::getCommon() , $separator ?>page=<?php echo $page , $formset , $formId , $separator ?>mode=edit">
|
||||
<a class="btn" href="<?php echo URL::getCommon(array('page' => $page, 'formset' => $formset, 'id' => $formId, 'mode' => 'edit')) ?>">
|
||||
<?php echo __('Show form') ?>
|
||||
</a>
|
||||
<?php
|
||||
@ -82,4 +79,4 @@ function PMA_generateHeader303()
|
||||
if (!defined('TESTSUITE')) {
|
||||
exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user