Change quickUserCan( 'edit' ) and getIsPrintable() into setEditSection( false )
authorPlatonides <platonides@users.mediawiki.org>
Thu, 5 Aug 2010 14:37:50 +0000 (14:37 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 5 Aug 2010 14:37:50 +0000 (14:37 +0000)
commit7bfebad30875b852e1e70bde10dbd12fa3e8a673
tree1152888a8485266256f5c9d4f0ad08228fe8a50d
parentb63c3457a4123354fd2166ff977cbcc02b86ee8f
Change quickUserCan( 'edit' ) and getIsPrintable() into setEditSection( false )

Follow up r48544. Init ParserOptions::mIsPrintable in initialiseFromUser()
Move the "No edit section it's printable" from Parser to Article.
This leaves getIsPrintable() unused. Left there for extensions (none seems to be using it, could be removed).

The "even if the user has them on" comment wasn't accurate. The user preference only controls them via CSS.
Anyway, it would work as expected now if it got moved into ParserOptions. The setEditSection() no longer set it to true.

Remove the quickUserCan( 'edit' ) which is just a hidden way of calling $wgUser from the Parser to be explicitely
done in Article to disable the editsection. This results in quickUserCan being called once instead of twice if $wgUseETag == true;.
includes/Article.php
includes/parser/Parser.php
includes/parser/ParserCache.php
includes/parser/ParserOptions.php