* Whitespace, __METHOD__, documentation for FauxRequest to avoid (hopefully?) a repeat bug
* Todo: look for other instances of the bug
* Do not present an image bigger than the source when 'frameless' option is used
(to be consistent with the 'thumb' option now)
* Support {{PLURAL}} for import log
+* Make sure that the correct log entries are shown on Special:Userrights even
+ for users with special characters in their names
== Parser changes in 1.12 ==
*/
function limitTitle( $page , $pattern ) {
global $wgMiserMode;
+
$title = Title::newFromText( $page );
if( strlen( $page ) == 0 || !$title instanceof Title )
* @return ResultWrapper result object to return the relevant rows
*/
function getRows() {
- $res = $this->db->query( $this->getQuery(), 'LogReader::getRows' );
+ $res = $this->db->query( $this->getQuery(), __METHOD__ );
return $this->db->resultObject( $res );
}
new FauxRequest(
array(
'type' => 'rights',
- 'page' => $user->getUserPage()->getPrefixedUrl(),
+ 'page' => $user->getUserPage()->getPrefixedText(),
)
)
)
var $data = null;
var $wasPosted = false;
+ /**
+ * @param array $data Array of *non*-urlencoded key => value pairs, the
+ * fake GET/POST values
+ * @param bool $wasPosted Whether to treat the data as POST
+ */
function FauxRequest( $data, $wasPosted = false ) {
if( is_array( $data ) ) {
$this->data = $data;