Show
Ignore:
Timestamp:
2008-03-28 11:08:10 (5 months ago)
Author:
wwalc
Message:

Fix for #1432: line breaks in IE + template preview

Files:
1 modified

Legend:

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

    r1660 r1829  
    122122} 
    123123 
     124function wfSajaxSearchTemplateFCKeditor($empty) 
     125{ 
     126        global $wgContLang, $wgOut; 
     127        $ns = NS_TEMPLATE; 
     128 
     129        $db =& wfGetDB( DB_SLAVE ); 
     130        $res = $db->select( 'page', 'page_title', 
     131        array(  'page_namespace' => $ns), 
     132        "wfSajaxSearch" 
     133        ); 
     134 
     135        $ret = ""; 
     136        while ( $row = $db->fetchObject( $res ) ) { 
     137                $ret .= $row->page_title ."\n"; 
     138        } 
     139 
     140        return $ret; 
     141} 
     142 
    124143function wfSajaxWikiToHTML( $wiki ) 
    125144{