Index: /MediaWiki/trunk/FCKeditor.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditor.body.php	(revision 2076)
+++ /MediaWiki/trunk/FCKeditor.body.php	(revision 2077)
@@ -1,6 +1,5 @@
 <?php
 
-class FCKeditor_MediaWiki
-{
+class FCKeditor_MediaWiki {
 	private $count = array();
 	private $wgFCKBypassText = "";
@@ -29,6 +28,5 @@
 	static $messagesLoaded = false;
 
-	function __call($m,$a)
-	{
+	function __call($m, $a) {
 		print "\n#### " . $m . "\n";
 		if (!isset($this->count[$m])) {
@@ -39,6 +37,5 @@
 	}
 
-	function onMonoBookTemplateToolboxEnd()
-	{
+	function onMonoBookTemplateToolboxEnd() {
 		if ($this->debug) {
 			print_r($this->count);
@@ -46,6 +43,5 @@
 	}
 
-	private function getExcludedNamespaces()
-	{
+	private function getExcludedNamespaces() {
 		global $wgUser;
 
@@ -62,6 +58,5 @@
 	}
 
-	public function onLanguageGetMagic(&$magicWords, $langCode)
-	{
+	public function onLanguageGetMagic(&$magicWords, $langCode) {
 		$magicWords['NORICHEDITOR'] = array( 0, '__NORICHEDITOR__' );
 		
@@ -69,6 +64,5 @@
 	}
 	
-	public function onParserBeforeInternalParse(&$parser, &$text, &$strip_state)
-	{
+	public function onParserBeforeInternalParse(&$parser, &$text, &$strip_state) {
 		MagicWord::get( 'NORICHEDITOR' )->matchAndRemove( $text );
 		
@@ -76,6 +70,5 @@
 	}
 	
-	public function onEditPageShowEditFormFields($pageEditor, $wgOut)
-	{
+	public function onEditPageShowEditFormFields($pageEditor, $wgOut) {
 		global $wgUser, $wgFCKEditorIsCompatible, $wgTitle, $wgVersion;
 
@@ -111,6 +104,5 @@
 	}
 
-	public function onEditPageBeforeConflictDiff($pageEditor, $wgOut)
-	{
+	public function onEditPageBeforeConflictDiff($pageEditor, $wgOut) {
 		global $fckPageEditor, $wgRequest;
 
@@ -125,6 +117,5 @@
 	}
 	
-	public function onSanitizerAfterFixTagAttributes($text, $element, &$attribs)
-	{
+	public function onSanitizerAfterFixTagAttributes($text, $element, &$attribs) {
 		$text = preg_match_all("/Fckmw\d+fckmw/", $text, $matches);
 		
@@ -181,6 +172,5 @@
 	}
 
-	public function onCustomEditor(&$article, &$user)
-	{
+	public function onCustomEditor(&$article, &$user) {
 		global $wgRequest, $mediaWiki;
 
@@ -204,6 +194,5 @@
 	}
 
-	public function onEditPageBeforePreviewText(&$editPage, $previewOnOpen)
-	{
+	public function onEditPageBeforePreviewText(&$editPage, $previewOnOpen) {
 		global $wgUser, $wgRequest;
 
@@ -216,6 +205,5 @@
 	}
 
-	public function onEditPagePreviewTextEnd(&$editPage, $previewOnOpen)
-	{
+	public function onEditPagePreviewTextEnd(&$editPage, $previewOnOpen) {
 		global $wgUser;
 
@@ -227,6 +215,5 @@
 	}
 
-	public function onParserAfterTidy(&$parser, &$text)
-	{
+	public function onParserAfterTidy(&$parser, &$text) {
 		global $wgUseTeX, $wgUser, $wgTitle, $wgFCKEditorIsCompatible;
 
@@ -248,6 +235,5 @@
 	}
 
-	public function onMessagesPreLoad()
-	{
+	public function onMessagesPreLoad() {
 		global $wgMessageCache, $wgUser, $wgContLanguageCode;
 
@@ -538,11 +524,9 @@
 var sajax_request_type = "GET";
 
-function WikiToHTML_Result(result)
-{
+function WikiToHTML_Result(result) {
 	var oEditor = FCKeditorAPI.GetInstance('wpTextbox1');
 	oEditor.SetHTML(result.responseText);
 }
-function WikiToHTML_Call()
-{
+function WikiToHTML_Call() {
 	var oEditor = FCKeditorAPI.GetInstance('wpTextbox1');
 	sajax_do_call('wfSajaxWikiToHTML', [oEditor.GetHTML()], WikiToHTML_Result);
Index: /MediaWiki/trunk/FCKeditor.php
===================================================================
--- /MediaWiki/trunk/FCKeditor.php	(revision 2076)
+++ /MediaWiki/trunk/FCKeditor.php	(revision 2077)
@@ -4,5 +4,5 @@
 if (!defined('MEDIAWIKI')) {
 	echo <<<HEREDOC
-To install my extension, put the following line in LocalSettings.php:
+To install FCKeditor extension, put the following line in LocalSettings.php:
 require_once( "\$IP/extensions/FCKeditor/FCKeditor.php" );
 HEREDOC;
@@ -53,14 +53,14 @@
 
 if (empty ($wgFCKEditorExtDir)) {
-    $wgFCKEditorExtDir = "extensions/FCKeditor" ;
+    $wgFCKEditorExtDir = "extensions/FCKeditor";
 }
 if (empty ($wgFCKEditorDir)) {
-    $wgFCKEditorDir = "extensions/FCKeditor/fckeditor" ;
+    $wgFCKEditorDir = "extensions/FCKeditor/fckeditor";
 }
 if (empty ($wgFCKEditorToolbarSet)) {
-    $wgFCKEditorToolbarSet = "Wiki" ;
+    $wgFCKEditorToolbarSet = "Wiki";
 }
 if (empty ($wgFCKEditorHeight)) {
-    $wgFCKEditorHeight = "0" ; // "0" for automatic ("300" minimum).
+    $wgFCKEditorHeight = "0"; // "0" for automatic ("300" minimum).
 }
 
@@ -78,9 +78,9 @@
 
 $wgExtensionCredits['other'][] = array(
-"name" => "FCKeditor extension",
-"author" => "FCKeditor.net (inspired by the code written by Mafs [Meta])",
-"version" => 'fckeditor/mw-extension $Rev$ 2008',
-"url" => "http://meta.wikimedia.org/wiki/FCKeditor",
-"description" => "FCKeditor extension"
+    'name' => 'FCKeditor',
+    'author' => array('FCKeditor.net', 'Wikia'),
+    'version' => 'fckeditor/mw-extension $Rev$ 2008',
+    'url' => 'http://www.mediawiki.org/wiki/Extension:FCKeditor_%28by_FCKeditor_and_Wikia%29',
+    'description' => 'FCKeditor extension for editing wiki pages (WYSIWYG editor)'
 );
 
@@ -91,9 +91,2 @@
 $oFCKeditorExtension->registerHooks();
 
-
-
-
-
-
-
-
Index: /MediaWiki/trunk/FCKeditorEditPage.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditorEditPage.body.php	(revision 2076)
+++ /MediaWiki/trunk/FCKeditorEditPage.body.php	(revision 2077)
@@ -1,6 +1,5 @@
 <?php
 
-class FCKeditorEditPage extends EditPage
-{
+class FCKeditorEditPage extends EditPage {
 	/**
 	 * Should we show a preview when the edit form is first shown?
Index: /MediaWiki/trunk/FCKeditorParser.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditorParser.body.php	(revision 2076)
+++ /MediaWiki/trunk/FCKeditorParser.body.php	(revision 2077)
@@ -1,6 +1,5 @@
 <?php
 
-class FCKeditorParser extends Parser
-{
+class FCKeditorParser extends Parser {
 	public static $fkc_mw_makeImage_options;
 	protected $fck_mw_strtr_span;
Index: /MediaWiki/trunk/FCKeditorParserOptions.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditorParserOptions.body.php	(revision 2076)
+++ /MediaWiki/trunk/FCKeditorParserOptions.body.php	(revision 2077)
@@ -1,8 +1,7 @@
 <?php
 
-class FCKeditorParserOptions extends ParserOptions
-{
-	function getNumberHeadings() {return false;}
-	function getEditSection() {return false;}
+class FCKeditorParserOptions extends ParserOptions {
+	function getNumberHeadings() { return false; }
+	function getEditSection() { return false; }
 
 	function getSkin() {
Index: /MediaWiki/trunk/FCKeditorSajax.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditorSajax.body.php	(revision 2076)
+++ /MediaWiki/trunk/FCKeditorSajax.body.php	(revision 2077)
@@ -1,6 +1,5 @@
 <?php
 
-function wfSajaxGetMathUrl( $term )
-{
+function wfSajaxGetMathUrl( $term ) {
 	$originalLink = MathRenderer::renderMath( $term );
 
@@ -15,6 +14,5 @@
 }
 
-function wfSajaxGetImageUrl( $term )
-{
+function wfSajaxGetImageUrl( $term ) {
 	global $wgExtensionFunctions, $wgTitle;
 
@@ -39,6 +37,5 @@
 }
 
-function wfSajaxSearchSpecialTagFCKeditor($empty)
-{
+function wfSajaxSearchSpecialTagFCKeditor($empty) {
 	global $wgParser;
 
@@ -52,6 +49,5 @@
 }
 
-function wfSajaxSearchImageFCKeditor( $term )
-{
+function wfSajaxSearchImageFCKeditor( $term ) {
 	global $wgContLang, $wgOut;
 	$limit = 10;
@@ -66,5 +62,5 @@
 	return "";
 
-	$db =& wfGetDB( DB_SLAVE );
+	$db = wfGetDB( DB_SLAVE );
 	$res = $db->select( 'page', 'page_title',
 	array(  'page_namespace' => NS_IMAGE,
@@ -75,5 +71,5 @@
 
 	$ret = "";
-	$i=0;
+	$i = 0;
 	while ( ( $row = $db->fetchObject( $res ) ) && ( ++$i <= $limit ) ) {
 		$ret .= $row->page_title ."\n";
@@ -85,6 +81,5 @@
 }
 
-function wfSajaxSearchArticleFCKeditor( $term )
-{
+function wfSajaxSearchArticleFCKeditor( $term ) {
 	global $wgContLang, $wgOut;
 	$limit = 10;
@@ -113,5 +108,5 @@
 	}
 
-	$db =& wfGetDB( DB_SLAVE );
+	$db = wfGetDB( DB_SLAVE );
 	$res = $db->select( 'page', 'page_title',
 	array(  'page_namespace' => $ns,
@@ -122,5 +117,5 @@
 
 	$ret = "";
-	$i=0;
+	$i = 0;
 	while ( ( $row = $db->fetchObject( $res ) ) && ( ++$i <= $limit ) ) {
 		if (isset($prefix) && !is_null($prefix)) {
@@ -135,12 +130,11 @@
 }
 
-function wfSajaxSearchTemplateFCKeditor($empty)
-{
+function wfSajaxSearchTemplateFCKeditor($empty) {
 	global $wgContLang, $wgOut;
 	$ns = NS_TEMPLATE;
 
-	$db =& wfGetDB( DB_SLAVE );
+	$db = wfGetDB( DB_SLAVE );
 	$res = $db->select( 'page', 'page_title',
-	array(  'page_namespace' => $ns),
+	array( 'page_namespace' => $ns),
 	"wfSajaxSearch"
 	);
@@ -154,6 +148,5 @@
 }
 
-function wfSajaxWikiToHTML( $wiki )
-{
+function wfSajaxWikiToHTML( $wiki ) {
 	global $wgTitle;
 
Index: /MediaWiki/trunk/FCKeditorSkin.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditorSkin.body.php	(revision 2076)
+++ /MediaWiki/trunk/FCKeditorSkin.body.php	(revision 2077)
@@ -1,6 +1,5 @@
 <?php
 
-class FCKeditorSkin
-{
+class FCKeditorSkin {
 	private $skin;
 
@@ -20,6 +19,5 @@
 	 */
 	function makeImageLinkObj( $nt, $label, $alt, $align = '', $params = array(), $framed = false,
-	$thumb = false, $manual_thumb = '', $valign = '' )
-	{
+	$thumb = false, $manual_thumb = '', $valign = '' ) {
 		$orginal = $nt->getText();
 		$img   = new Image( $nt );
@@ -216,6 +214,5 @@
 	}
 
-	function makeKnownLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' , $aprops = '', $style = '' )
-	{
+	function makeKnownLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' , $aprops = '', $style = '' ) {
 		$fname = 'FCKeditorSkin::makeKnownLinkObj';
 		wfProfileIn( $fname );
@@ -258,6 +255,5 @@
 	}
 
-	function makeBrokenLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' )
-	{
+	function makeBrokenLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' ) {
 		# Fail gracefully
 		if ( ! isset($nt) ) {
@@ -345,11 +341,9 @@
 	}
 
-	function __call( $m, $a)
-	{
+	function __call( $m, $a) {
 		return call_user_func_array( array( $this->skin, $m ), $a );
 	}
 
-	function __construct( &$skin )
-	{
+	function __construct( &$skin ) {
 		$this->skin = $skin;
 	}
