patch #1257134: no longer emit the strPmaUriError message

This commit is contained in:
Marc Delisle
2005-08-23 23:08:21 +00:00
parent b4b17a122f
commit b073c6365e
5 changed files with 17 additions and 40 deletions

View File

@@ -7,6 +7,10 @@ $Source$
2005-08-23 Marc Delisle <lem9@users.sourceforge.net> 2005-08-23 Marc Delisle <lem9@users.sourceforge.net>
* libraries/display_tbl.lib.php: bug #1267177, wrong return page * libraries/display_tbl.lib.php: bug #1267177, wrong return page
* main.php, libraries/common.lib.php, Documentation.html,
config.inc.php: patch #1257134, removed code to display the warning if
PmaAbsoluteUri is not set. A notice will still display if the autodetect
code is unable to figure out the proper URI. Thanks to Isaac Bennetch
2005-08-23 Michal Čihař <michal@cihar.com> 2005-08-23 Michal Čihař <michal@cihar.com>
* libraries/database_interface.lib.php: Abide cfg['Lang'] settings even if * libraries/database_interface.lib.php: Abide cfg['Lang'] settings even if

View File

@@ -397,23 +397,15 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON &lt;pma_db&gt;.* TO 'pma'@'localhost';
<br /><br /> <br /><br />
Starting with version 2.3.0, it is advisable to try leaving this Starting with version 2.3.0, it is advisable to try leaving this
blank. In most cases phpMyAdmin automatically detects the proper blank. In most cases phpMyAdmin automatically detects the proper
setting. Additional details are in the configuration file. If you setting. Additional details are in the configuration file.
leave it blank, see the notes for
<tt>$cfg['PmaAbsoluteUri_DisableWarning']</tt>; you probably want
to change that to <tt>TRUE</tt>.
<br /><br /> <br /><br />
Don't forget the slash at the end of your URL. The URL must contain Don't forget the slash at the end of your URL. The URL must contain
characters that are valid for a URL, and on some servers, the path characters that are valid for a URL, and on some servers, the path
is case-sensitive. is case-sensitive.
<br /><br /> <br /><br />
</dd> If you get an error that this must be set or if the autodetect code
<dt><b>$cfg['PmaAbsoluteUri_DisableWarning']</b> boolean</dt> fails to detect your path, please post a bug report on our
<dd> bug tracker so we can improve the code.
By default, when you leave $cfg['PmaAbsoluteUri'] empty, and the system
detects your absolute URI automatically, we display a warning to remind
you. If you have tested the automatic detection, and it works perfectly
for your setup, then you can set this variable to squelch the warning.
<br /><br />
</dd> </dd>
<dt><b>$cfg['PmaNoRelation_DisableWarning']</b> boolean</dt> <dt><b>$cfg['PmaNoRelation_DisableWarning']</b> boolean</dt>

View File

@@ -19,7 +19,7 @@ if (!isset($old_error_reporting)) {
/** /**
* Your phpMyAdmin url * Your phpMyAdmin URL.
* *
* Complete the variable below with the full url ie * Complete the variable below with the full url ie
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/ * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
@@ -32,20 +32,9 @@ if (!isset($old_error_reporting)) {
* test to see that the auto-detection code works in your system. A good * test to see that the auto-detection code works in your system. A good
* test is to browse a table, then edit a row and save it. There will be * test is to browse a table, then edit a row and save it. There will be
* an error message if phpMyAdmin cannot auto-detect the correct value. * an error message if phpMyAdmin cannot auto-detect the correct value.
*
* If the auto-detection code does work properly, you can set to TRUE the
* $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
*/ */
$cfg['PmaAbsoluteUri'] = ''; $cfg['PmaAbsoluteUri'] = '';
/**
* Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
* You should use this if and ONLY if the PmaAbsoluteUri auto-detection
* works perfectly.
*/
$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
/** /**
* Disable the default warning that is displayed on the DB Details Structure page if * Disable the default warning that is displayed on the DB Details Structure page if
* any of the required Tables for the relationfeatures could not be found * any of the required Tables for the relationfeatures could not be found

View File

@@ -998,10 +998,9 @@ if ($is_minimum_common == FALSE) {
* set properly and, depending on browsers, inserting or updating a * set properly and, depending on browsers, inserting or updating a
* record might fail * record might fail
*/ */
$display_pmaAbsoluteUri_warning = 0;
// Setup a default value to let the people and lazy syadmins work anyway, // Setup a default value to let the people and lazy syadmins work anyway,
// but display a big warning on the main.php page. // they'll get an error if the autodetect code doesn't work
if (empty($cfg['PmaAbsoluteUri'])) { if (empty($cfg['PmaAbsoluteUri'])) {
$url = array(); $url = array();
@@ -1080,15 +1079,11 @@ if ($is_minimum_common == FALSE) {
unset($url); unset($url);
// We display the warning by default, but not if it is disabled thru // We used to display a warning if PmaAbsoluteUri wasn't set, but now
// via the $cfg['PmaAbsoluteUri_DisableWarning'] variable. // the autodetect code works well enough that we don't display the
// This is intended for sysadmins that actually want the default // warning at all. The user can still set PmaAbsoluteUri manually.
// behaviour of auto-detection due to their setup. // See https://sourceforge.net/tracker/index.php?func=detail&aid=1257134&group_id=23067&atid=377411
// See the mailing list message:
// http://sourceforge.net/mailarchive/forum.php?thread_id=859093&forum_id=2141
if ($cfg['PmaAbsoluteUri_DisableWarning'] == FALSE) {
$display_pmaAbsoluteUri_warning = 1;
}
} else { } else {
// The URI is specified, however users do often specify this // The URI is specified, however users do often specify this
// wrongly, so we try to fix this. // wrongly, so we try to fix this.

View File

@@ -590,12 +590,9 @@ echo "\n";
<?php <?php
/** /**
* Displays the "empty $cfg['PmaAbsoluteUri'] warning" * Removed the "empty $cfg['PmaAbsoluteUri']" warning on 2005-08-23
* modified: 2004-05-05 mkkeck * See https://sourceforge.net/tracker/index.php?func=detail&aid=1257134&group_id=23067&atid=377411
*/ */
if ($display_pmaAbsoluteUri_warning) {
echo '<div class="warning">' . $strPmaUriError . '</div>' . "\n";
}
/** /**
* Warning if using the default MySQL privileged account * Warning if using the default MySQL privileged account