Index: trunk/phase3/maintenance/interwiki.list |
— | — | @@ -1,5 +1,5 @@ |
| 2 | +# Based more or less on the public interwiki map from MeatballWiki |
| 3 | +# Default interwiki prefixes... |
2 | 4 | acronym|http://www.acronymfinder.com/af-query.asp?String=exact&Acronym=$1|0 |
3 | 5 | advogato|http://www.advogato.org/$1|0 |
4 | 6 | annotationwiki|http://www.seedwiki.com/page.cfm?wikiid=368&doc=$1|0 |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | oeis|http://www.research.att.com/cgi-bin/access.cgi/as/njas/sequences/eisA.cgi?Anum=$1|0 |
50 | 50 | openfacts|http://openfacts.berlios.de/index.phtml?title=$1|0 |
51 | 51 | openwiki|http://openwiki.com/?$1|0 |
| 52 | +# patwiki|http://gauss.ffii.org/$1|0 # 2008-02-27: lots of spambots |
52 | 53 | pmeg|http://www.bertilow.com/pmeg/$1.php|0 |
53 | 54 | ppr|http://c2.com/cgi/wiki?$1|0 |
54 | 55 | pythoninfo|http://wiki.python.org/moin/$1|0 |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | seattlewiki|http://seattle.wikia.com/wiki/$1|0 |
59 | 59 | seattlewireless|http://seattlewireless.net/?$1|0 |
60 | 60 | senseislibrary|http://senseis.xmp.net/?$1|0 |
| 61 | +# slashdot|http://slashdot.org/article.pl?sid=$1|0 # 2008-02-27: update me |
61 | 62 | sourceforge|http://sourceforge.net/$1|0 |
62 | 63 | squeak|http://wiki.squeak.org/squeak/$1|0 |
63 | 64 | susning|http://www.susning.nu/$1|0 |
Index: trunk/phase3/includes/installer/InstallerDBType.php |
— | — | @@ -350,7 +350,8 @@ |
351 | 351 | return Status::newFatal( 'config-install-interwiki-sql' ); |
352 | 352 | } |
353 | 353 | foreach( $rows as $row ) { |
354 | | - if( substr( $row, 0, 2 ) == '--' ) continue; // skip comments -- Whee |
| 354 | + $row = preg_replace( '/^\s*([^#]*?)\s*(#.*)?$/', '\\1', $row ); // strip comments - whee |
| 355 | + if ( $row == "" ) continue; |
355 | 356 | $interwikis[] = array_combine( |
356 | 357 | array( 'iw_prefix', 'iw_url', 'iw_local' ), |
357 | 358 | explode( '|', $row ) |