User "Dantman" posted a comment on MediaWiki.r93137.

Full URL: 
https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Special:Code/MediaWiki/93137#c20131
Commit summary:

Added a workaround for the lack of RequestContext in 1.17, so this code can be 
rolled into production.
This code can be removed in 1.18+, but it'll work either way.

Comment:

This seams a little verbose, that could be done in one line instead of 
7+comments.
<source lang=php>
$this->mUpload = new UploadFromStash( class_exists( 'RequestContext' ) ? 
$this->createContext()->user : $GLOBALS['wgUser'] );
</source>

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

Reply via email to