http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82892
Revision: 82892
Author: janpaul123
Date: 2011-02-27 14:54:52 +0000 (Sun, 27 Feb 2011)
Log Message:
-----------
Moved reference detection to Cite extension (per r82891).
Modified Paths:
--------------
trunk/extensions/InlineEditor/InlineEditor.class.php
trunk/extensions/InlineEditor/InlineEditor.php
Modified: trunk/extensions/InlineEditor/InlineEditor.class.php
===================================================================
--- trunk/extensions/InlineEditor/InlineEditor.class.php 2011-02-27
14:50:56 UTC (rev 82891)
+++ trunk/extensions/InlineEditor/InlineEditor.class.php 2011-02-27
14:54:52 UTC (rev 82892)
@@ -430,18 +430,4 @@
return Html::rawElement( 'div', array( 'class' => 'editbox' ),
$form );
}
-
- /**
- * Make sure the entire page rerenders when rendering a reference.
- *
- * @todo: FIXME: This should be moved over to the Cite extension, and
something like this should
- * be included in other extensions as well. In the future, something
smarter should be
- * implemented, to be able to only rerender the dependencies and not
the entire page.
- *
- * @param $markedWiki string
- * @return bool
- */
- public static function partialRenderCite( $markedWiki ) {
- return ( preg_match( '/<ref[^\/]*?>.*?<\/ref>|<ref.*?\/>/is',
$markedWiki) <= 0) ;
- }
}
Modified: trunk/extensions/InlineEditor/InlineEditor.php
===================================================================
--- trunk/extensions/InlineEditor/InlineEditor.php 2011-02-27 14:50:56 UTC
(rev 82891)
+++ trunk/extensions/InlineEditor/InlineEditor.php 2011-02-27 14:54:52 UTC
(rev 82892)
@@ -46,7 +46,6 @@
$wgHooks['InlineEditorPartialBeforeParse'] = array();
$wgHooks['InlineEditorPartialAfterParse'] = array();
-$wgHooks['InlineEditorPartialBeforeParse'][] =
'InlineEditor::partialRenderCite';
// i18n messages
$wgExtensionMessagesFiles['InlineEditor'] = $dir .
'InlineEditor.i18n.php';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs