Last modified: 2013-03-29 10:45:02 UTC
To enhance the login page I have following proposal which modifies the 'addReturnTo' function, so that modern browsers (like e.g. Opera) hold a 'next' link ready to make it easier for the user to go back to the page where they were before login. The file is '/var/lib/mediawiki/includes/OutputPage.php' the line numbers were taken from Debian's actual mediawiki version (1.12.0-2lenny1), the modifications are lines 1171-1180 which replace the now commented out line number 1181. -- 1169 public function addReturnTo( $title ) { 1170 global $wgUser; 1171 $link= $wgUser->getSkin()->makeLinkObj( $title ); 1172 1173 // create a 'next' link for modern browsers 1174 $link_next = ereg_replace( '<a href="(.*)" .*', '\\1', $link ); 1175 $this->addLink( 1176 array( 1177 'rel' => 'next', 1178 'href' => $link_next ) ); 1179 1180 $link = wfMsg( 'returnto', $link ); 1181 # $link = wfMsg( 'returnto', $wgUser->getSkin()->makeLinkObj( $title ) ); 1182 $this->addHtml( "<p>{$link}</p>\n" ); 1183 } -- Regards, Jalsti (As this is my first post here, I just can hope everything is placed correctly and completely.)
Done in r44977