fix links for chapter documentation (bug #1341676), drop support for old links.
This commit is contained in:
@@ -7,7 +7,8 @@ $Source$
|
|||||||
|
|
||||||
2005-10-29 Michal Čihař <michal@cihar.com>
|
2005-10-29 Michal Čihař <michal@cihar.com>
|
||||||
* Documentation.html, config.default.php, libraries/common.lib.php: Link
|
* Documentation.html, config.default.php, libraries/common.lib.php: Link
|
||||||
documentation to version we run (RFE #1334292).
|
documentation to version we run (RFE #1334292), fix links for chapter
|
||||||
|
documentation (bug #1341676), drop support for old links.
|
||||||
|
|
||||||
2005-10-29 Olivier Mueller <om@omnis.ch>
|
2005-10-29 Olivier Mueller <om@omnis.ch>
|
||||||
* scripts/upgrade.pl: various fixes (was not handling rc/pl correctely),
|
* scripts/upgrade.pl: various fixes (was not handling rc/pl correctely),
|
||||||
|
@@ -1361,7 +1361,6 @@ Defaults to FALSE (drop-down). <br />
|
|||||||
<li>searchable - "Searchable, with user comments"</li>
|
<li>searchable - "Searchable, with user comments"</li>
|
||||||
<li>chapters - "HTML, one page per chapter"</li>
|
<li>chapters - "HTML, one page per chapter"</li>
|
||||||
<li>big - "HTML, all on one page"</li>
|
<li>big - "HTML, all on one page"</li>
|
||||||
<li>old - old style used in phpMyAdmin 2.3.0 and earlier</li>
|
|
||||||
<li>none - do not show documentation links</li>
|
<li>none - do not show documentation links</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
@@ -410,6 +410,7 @@ $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
|
|||||||
* viewable - "viewable online", current one used on MySQL website
|
* viewable - "viewable online", current one used on MySQL website
|
||||||
* searchable - "Searchable, with user comments"
|
* searchable - "Searchable, with user comments"
|
||||||
* chapters - "HTML, one page per chapter"
|
* chapters - "HTML, one page per chapter"
|
||||||
|
* chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
|
||||||
* big - "HTML, all on one page"
|
* big - "HTML, all on one page"
|
||||||
* old - old style used in phpMyAdmin 2.3.0 and sooner
|
* old - old style used in phpMyAdmin 2.3.0 and sooner
|
||||||
* none - do not show documentation links
|
* none - do not show documentation links
|
||||||
|
@@ -524,12 +524,13 @@ if ($is_minimum_common == FALSE) {
|
|||||||
|
|
||||||
if ($cfg['MySQLManualType'] == 'none' || empty($cfg['MySQLManualBase'])) return '';
|
if ($cfg['MySQLManualType'] == 'none' || empty($cfg['MySQLManualBase'])) return '';
|
||||||
|
|
||||||
|
// Fixup for newly used names:
|
||||||
|
$chapter = str_replace('_', '-', strtolower($chapter));
|
||||||
|
$link = str_replace('_', '-', strtolower($link));
|
||||||
|
|
||||||
switch ($cfg['MySQLManualType']) {
|
switch ($cfg['MySQLManualType']) {
|
||||||
case 'old':
|
|
||||||
$url = $cfg['MySQLManualBase'] . '/' . $link[0] . '/' . $link[1] . '/' . $link . '.html';
|
|
||||||
break;
|
|
||||||
case 'chapters':
|
case 'chapters':
|
||||||
$url = $cfg['MySQLManualBase'] . '/manual_' . $chapter . '.html#' . $link;
|
$url = $cfg['MySQLManualBase'] . '/' . $chapter . '.html#' . $link;
|
||||||
break;
|
break;
|
||||||
case 'big':
|
case 'big':
|
||||||
$url = $cfg['MySQLManualBase'] . '#' . $link;
|
$url = $cfg['MySQLManualBase'] . '#' . $link;
|
||||||
@@ -554,7 +555,7 @@ if ($is_minimum_common == FALSE) {
|
|||||||
}else{
|
}else{
|
||||||
return '[<a href="' . $url . '" target="mysql_doc">' . $GLOBALS['strDocu'] . '</a>]';
|
return '[<a href="' . $url . '" target="mysql_doc">' . $GLOBALS['strDocu'] . '</a>]';
|
||||||
}
|
}
|
||||||
} // end of the 'PMA_showDocu()' function
|
} // end of the 'PMA_showMySQLDocu()' function
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays a hint icon, on mouse over show the hint
|
* Displays a hint icon, on mouse over show the hint
|
||||||
@@ -625,7 +626,7 @@ if ($is_minimum_common == FALSE) {
|
|||||||
// modified to show me the help on sql errors (Michael Keck)
|
// modified to show me the help on sql errors (Michael Keck)
|
||||||
echo ' <p><strong>' . $GLOBALS['strSQLQuery'] . ':</strong>' . "\n";
|
echo ' <p><strong>' . $GLOBALS['strSQLQuery'] . ':</strong>' . "\n";
|
||||||
if (strstr(strtolower($formatted_sql),'select')) { // please show me help to the error on select
|
if (strstr(strtolower($formatted_sql),'select')) { // please show me help to the error on select
|
||||||
echo PMA_showMySQLDocu('Reference', 'SELECT');
|
echo PMA_showMySQLDocu('SQL-Syntax', 'SELECT');
|
||||||
}
|
}
|
||||||
if ($is_modify_link && isset($db)) {
|
if ($is_modify_link && isset($db)) {
|
||||||
if (isset($table)) {
|
if (isset($table)) {
|
||||||
|
Reference in New Issue
Block a user