3 If a page does not exist in the local Wiki, this plugin tries to link
4 the WikiWord to somewhere else in InterWiki space (directly, without
5 intermediate "this-page-only-exists-on-..." page).
6 - still requires CSS and title= integration
13 $ewiki_plugins["format_prepare_linking"][] = "ewiki_linking_near1";
16 function ewiki_linking_near1(&$wsrc) {
18 global $ewiki_metadb, $ewiki_links;
20 #-- select not-found links
22 foreach ($ewiki_links as $id=>$state) {
28 #-- load metadb, inject URLs into $ewiki_links
29 if (count($nf) && ewiki_metadb::LOAD()) {
30 $nf = ewiki_metadb::FIND($nf);
31 foreach ($nf as $id=>$found) {
33 $ewiki_links[$id] = ewiki_interwiki($found[0]);
36 ewiki_metadb::UNLOAD();