Index: trunk/extensions/StaticWiki/StaticWiki.php |
— | — | @@ -39,12 +39,9 @@ |
40 | 40 | if ( !in_array ( $wgTitle->getNamespace() , $wgStaticWikiNamespaces ) ) return true ; # This article namespace is not imported => normal edit |
41 | 41 | |
42 | 42 | if ( ! $a->mTitle->userCan( 'edit' ) ) { # Only users that can edit may import as well |
43 | | - wfDebug( "$fname: user can't edit\n" ); |
44 | | - $wgOut->readOnlyPage( $this->mArticle->getContent( true ), true ); |
45 | | - wfProfileOut( $fname ); |
46 | | - return true; |
47 | | - } |
48 | | - |
| 43 | + return true; |
| 44 | + } |
| 45 | + |
49 | 46 | $url_title = $wgTitle->getPrefixedDBkey() ; |
50 | 47 | $title = $wgTitle->getText () ; |
51 | 48 | $wgOut->setPageTitle ( 'Importing ' . $wgTitle->getPrefixedText() ) ; |
Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -399,7 +399,8 @@ |
400 | 400 | } |
401 | 401 | } else { |
402 | 402 | $form_is_disabled = true; |
403 | | - $wgOut->readOnlyPage( null, false, $permissionErrors, 'edit' ); |
| 403 | + $wgOut->setPageTitle( wfMsg( 'badaccess' ) ); |
| 404 | + $wgOut->addWikiText( $wgOut->formatPermissionsErrorMessage( $permissionErrors, 'edit' ) ); |
404 | 405 | $wgOut->addHTML( "\n<hr />\n" ); |
405 | 406 | } |
406 | 407 | |