https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112519

Revision: 112519
Author:   maxsem
Date:     2012-02-27 21:29:19 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
Added a class specifically to blacklist stuff from appearing in excerpts

Modified Paths:
--------------
    trunk/extensions/MobileFrontend/ApiQueryExcerpt.php

Modified: trunk/extensions/MobileFrontend/ApiQueryExcerpt.php
===================================================================
--- trunk/extensions/MobileFrontend/ApiQueryExcerpt.php 2012-02-27 21:27:57 UTC 
(rev 112518)
+++ trunk/extensions/MobileFrontend/ApiQueryExcerpt.php 2012-02-27 21:29:19 UTC 
(rev 112519)
@@ -110,7 +110,9 @@
                wfProfileIn( __METHOD__ );
                $mf = new MobileFormatter( MobileFormatter::wrapHTML( $text, 
false ), $title, 'XHTML' );
                $mf->removeImages();
-               $mf->remove( array( 'table', 'div', 'sup.reference', 
'span.coordinates', 'span.geo-multi-punct', 'span.geo-nondefault' ) );
+               $mf->remove( array( 'table', 'div', 'sup.reference', 
'span.coordinates',
+                       'span.geo-multi-punct', 'span.geo-nondefault', 
'.noexcerpt' )
+               );
                if ( $plainText ) {
                        $mf->flatten( '[?!]?[a-z0-9]+' );
                } else {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to