Changeset 2077 for MediaWiki/trunk/FCKeditorSajax.body.php
- Timestamp:
- 2008-06-17 15:01:25 (6 months ago)
- Files:
-
- 1 modified
-
MediaWiki/trunk/FCKeditorSajax.body.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
MediaWiki/trunk/FCKeditorSajax.body.php
r1836 r2077 1 1 <?php 2 2 3 function wfSajaxGetMathUrl( $term ) 4 { 3 function wfSajaxGetMathUrl( $term ) { 5 4 $originalLink = MathRenderer::renderMath( $term ); 6 5 … … 15 14 } 16 15 17 function wfSajaxGetImageUrl( $term ) 18 { 16 function wfSajaxGetImageUrl( $term ) { 19 17 global $wgExtensionFunctions, $wgTitle; 20 18 … … 39 37 } 40 38 41 function wfSajaxSearchSpecialTagFCKeditor($empty) 42 { 39 function wfSajaxSearchSpecialTagFCKeditor($empty) { 43 40 global $wgParser; 44 41 … … 52 49 } 53 50 54 function wfSajaxSearchImageFCKeditor( $term ) 55 { 51 function wfSajaxSearchImageFCKeditor( $term ) { 56 52 global $wgContLang, $wgOut; 57 53 $limit = 10; … … 66 62 return ""; 67 63 68 $db = &wfGetDB( DB_SLAVE );64 $db = wfGetDB( DB_SLAVE ); 69 65 $res = $db->select( 'page', 'page_title', 70 66 array( 'page_namespace' => NS_IMAGE, … … 75 71 76 72 $ret = ""; 77 $i =0;73 $i = 0; 78 74 while ( ( $row = $db->fetchObject( $res ) ) && ( ++$i <= $limit ) ) { 79 75 $ret .= $row->page_title ."\n"; … … 85 81 } 86 82 87 function wfSajaxSearchArticleFCKeditor( $term ) 88 { 83 function wfSajaxSearchArticleFCKeditor( $term ) { 89 84 global $wgContLang, $wgOut; 90 85 $limit = 10; … … 113 108 } 114 109 115 $db = &wfGetDB( DB_SLAVE );110 $db = wfGetDB( DB_SLAVE ); 116 111 $res = $db->select( 'page', 'page_title', 117 112 array( 'page_namespace' => $ns, … … 122 117 123 118 $ret = ""; 124 $i =0;119 $i = 0; 125 120 while ( ( $row = $db->fetchObject( $res ) ) && ( ++$i <= $limit ) ) { 126 121 if (isset($prefix) && !is_null($prefix)) { … … 135 130 } 136 131 137 function wfSajaxSearchTemplateFCKeditor($empty) 138 { 132 function wfSajaxSearchTemplateFCKeditor($empty) { 139 133 global $wgContLang, $wgOut; 140 134 $ns = NS_TEMPLATE; 141 135 142 $db = &wfGetDB( DB_SLAVE );136 $db = wfGetDB( DB_SLAVE ); 143 137 $res = $db->select( 'page', 'page_title', 144 array( 'page_namespace' => $ns),138 array( 'page_namespace' => $ns), 145 139 "wfSajaxSearch" 146 140 ); … … 154 148 } 155 149 156 function wfSajaxWikiToHTML( $wiki ) 157 { 150 function wfSajaxWikiToHTML( $wiki ) { 158 151 global $wgTitle; 159 152