Show
Ignore:
Timestamp:
2008-06-17 15:01:25 (6 months ago)
Author:
wwalc
Message:

Fix for #2226 (improved formatting, extension credits)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • MediaWiki/trunk/FCKeditorSajax.body.php

    r1836 r2077  
    11<?php 
    22 
    3 function wfSajaxGetMathUrl( $term ) 
    4 { 
     3function wfSajaxGetMathUrl( $term ) { 
    54        $originalLink = MathRenderer::renderMath( $term ); 
    65 
     
    1514} 
    1615 
    17 function wfSajaxGetImageUrl( $term ) 
    18 { 
     16function wfSajaxGetImageUrl( $term ) { 
    1917        global $wgExtensionFunctions, $wgTitle; 
    2018 
     
    3937} 
    4038 
    41 function wfSajaxSearchSpecialTagFCKeditor($empty) 
    42 { 
     39function wfSajaxSearchSpecialTagFCKeditor($empty) { 
    4340        global $wgParser; 
    4441 
     
    5249} 
    5350 
    54 function wfSajaxSearchImageFCKeditor( $term ) 
    55 { 
     51function wfSajaxSearchImageFCKeditor( $term ) { 
    5652        global $wgContLang, $wgOut; 
    5753        $limit = 10; 
     
    6662        return ""; 
    6763 
    68         $db =& wfGetDB( DB_SLAVE ); 
     64        $db = wfGetDB( DB_SLAVE ); 
    6965        $res = $db->select( 'page', 'page_title', 
    7066        array(  'page_namespace' => NS_IMAGE, 
     
    7571 
    7672        $ret = ""; 
    77         $i=0; 
     73        $i = 0; 
    7874        while ( ( $row = $db->fetchObject( $res ) ) && ( ++$i <= $limit ) ) { 
    7975                $ret .= $row->page_title ."\n"; 
     
    8581} 
    8682 
    87 function wfSajaxSearchArticleFCKeditor( $term ) 
    88 { 
     83function wfSajaxSearchArticleFCKeditor( $term ) { 
    8984        global $wgContLang, $wgOut; 
    9085        $limit = 10; 
     
    113108        } 
    114109 
    115         $db =& wfGetDB( DB_SLAVE ); 
     110        $db = wfGetDB( DB_SLAVE ); 
    116111        $res = $db->select( 'page', 'page_title', 
    117112        array(  'page_namespace' => $ns, 
     
    122117 
    123118        $ret = ""; 
    124         $i=0; 
     119        $i = 0; 
    125120        while ( ( $row = $db->fetchObject( $res ) ) && ( ++$i <= $limit ) ) { 
    126121                if (isset($prefix) && !is_null($prefix)) { 
     
    135130} 
    136131 
    137 function wfSajaxSearchTemplateFCKeditor($empty) 
    138 { 
     132function wfSajaxSearchTemplateFCKeditor($empty) { 
    139133        global $wgContLang, $wgOut; 
    140134        $ns = NS_TEMPLATE; 
    141135 
    142         $db =& wfGetDB( DB_SLAVE ); 
     136        $db = wfGetDB( DB_SLAVE ); 
    143137        $res = $db->select( 'page', 'page_title', 
    144         array(  'page_namespace' => $ns), 
     138        array( 'page_namespace' => $ns), 
    145139        "wfSajaxSearch" 
    146140        ); 
     
    154148} 
    155149 
    156 function wfSajaxWikiToHTML( $wiki ) 
    157 { 
     150function wfSajaxWikiToHTML( $wiki ) { 
    158151        global $wgTitle; 
    159152