* Removed float from the user login form in RTL interface - caused display
problems in FF2
* (bug 15008) Redirect images are now subject to Bad image list rules
-* (bug 18677) Give proper error message when viewing &action=protect without
- sufficient rights
* (bug 6802) profileinfo.php now also work on other database servers than MySQL
* (bug 16925) Diffs no longer fail when $wgExternalDiffEngine is set to 'wikidiff'
or 'wikidiff2' but extension is not installed
* action=protect handler
*/
public function protect() {
- global $wgUser, $wgOut;
-
- # Check permissions
- $permission_errors = $this->mTitle->getUserPermissionsErrors( 'protect', $wgUser );
-
- if( count( $permission_errors ) > 0 ) {
- $wgOut->showPermissionsErrorPage( $permission_errors );
- return;
- }
-
$form = new ProtectionForm( $this );
$form->execute();
}