2010-02-22
walsh
The way that the linking of the MySQL keywords into a search in the reference manual mangles the links that it creates. It also is 5.1 specific, while my patch will return all searches.
There are further improvements that could be made that would remove the static inclusion of "5.1" only linking, but I have not made them at this time.
Path is inc/geshi/mysql.php
diff -urN .old/mysql.php.2010-02-22_14\:26\:02 mysql.php
--- .old/mysql.php.2010-02-22_14:26:02 2010-02-22 14:26:02.000000000 -0400
+++ mysql.php 2010-02-22 14:26:27.000000000 -0400
@@ -391,15 +391,15 @@
)
),
'URLS' => array(
- 1 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
- 2 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
- 3 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
- 4 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
- 5 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
- 6 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
- 7 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
- 8 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
- 9 => 'http://search.mysql.com/search?site=refman-51&q={FNAME}&lr=lang_en',
+ 1 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
+ 2 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
+ 3 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
+ 4 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
+ 5 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
+ 6 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
+ 7 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
+ 8 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
+ 9 => 'http://search.mysql.com/search?q={FNAME}&lr=lang_en',
10 => 'http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html',
11 => 'http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html',