Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3193
nonumberedheadings.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:23 PM
2014-11-21 21:23:38 (UTC+0)
Size
592 B
Referenced Files
None
Subscribers
None
nonumberedheadings.patch
View Options
Index: phase3/includes/Parser.php
===================================================================
--- phase3/includes/Parser.php (revision 20143)
+++ phase3/includes/Parser.php (working copy)
@@ -3397,6 +3397,13 @@
global $wgMaxTocLevel, $wgContLang;
$doNumberHeadings = $this->mOptions->getNumberHeadings();
+
+ # Inhibit numbered headings if requested in the page
+ $mw =& MagicWord::get( 'nonumberedheadings' );
+ if( $mw->matchAndRemove( $text ) ) {
+ $doNumberHeadings = 0;
+ }
+
if( !$this->mTitle->quickUserCan( 'edit' ) ) {
$showEditLink = 0;
} else {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2763
Default Alt Text
nonumberedheadings.patch (592 B)
Attached To
Mode
T9832: Introduce __NONUMBEREDHEADINGS__ magic word
Attached
Detach File
Event Timeline
Log In to Comment