X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FEditPage.php;h=905998759520a8c26658909e9369d6aa51812538;hb=be09a508877fb1a2441e8c7783742a84111b6851;hp=05e0ac0ee97e137af0cc490e66e3265e3e818086;hpb=d92845c2295d982c80312880c3fae788450676ea;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 05e0ac0ee9..9059987595 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -980,7 +980,7 @@ class EditPage { global $wgUser; $this->edittime = $this->mArticle->getTimestamp(); - $content = $this->getContentObject( false ); #TODO: track content object?! + $content = $this->getContentObject( false ); # TODO: track content object?! if ( $content === false ) { return false; } @@ -1228,7 +1228,7 @@ class EditPage { $title = Title::newFromText( $preload ); # Check for existence to avoid getting MediaWiki:Noarticletext if ( $title === null || !$title->exists() || !$title->userCan( 'read', $wgUser ) ) { - //TODO: somehow show a warning to the user! + // TODO: somehow show a warning to the user! return $handler->makeEmptyContent(); } @@ -1237,7 +1237,7 @@ class EditPage { $title = $page->getRedirectTarget(); # Same as before if ( $title === null || !$title->exists() || !$title->userCan( 'read', $wgUser ) ) { - //TODO: somehow show a warning to the user! + // TODO: somehow show a warning to the user! return $handler->makeEmptyContent(); } $page = WikiPage::factory( $title ); @@ -1247,7 +1247,7 @@ class EditPage { $content = $page->getContent( Revision::RAW ); if ( !$content ) { - //TODO: somehow show a warning to the user! + // TODO: somehow show a warning to the user! return $handler->makeEmptyContent(); } @@ -1255,7 +1255,7 @@ class EditPage { $converted = $content->convert( $handler->getModelID() ); if ( !$converted ) { - //TODO: somehow show a warning to the user! + // TODO: somehow show a warning to the user! wfDebug( "Attempt to preload incompatible content: " . "can't convert " . $content->getModel() . " to " . $handler->getModelID() ); @@ -2514,7 +2514,7 @@ class EditPage { # user preference is active, pass a hidden tag as wpIgnoreBlankSummary. This will stop the # user being bounced back more than once in the event that a summary # is not required. - ##### + # #### # For a bit more sophisticated detection of blank summaries, hash the # automatic one and pass that in the hidden field wpAutoSummary. if ( $this->missingSummary || ( $this->section == 'new' && $this->nosummary ) ) { @@ -2681,7 +2681,7 @@ class EditPage { if ( $this->section != '' && $this->section != 'new' ) { if ( !$this->summary && !$this->preview && !$this->diff ) { - $sectionTitle = self::extractSectionTitle( $this->textbox1 ); //FIXME: use Content object + $sectionTitle = self::extractSectionTitle( $this->textbox1 ); // FIXME: use Content object if ( $sectionTitle !== false ) { $this->summary = "/* $sectionTitle */ "; } @@ -3705,7 +3705,7 @@ HTML $imagesAvailable = $wgEnableUploads || count( $wgForeignFileRepos ); $showSignature = true; if ( $title ) { - $showSignature = MWNamespace::wantSignatures( $title->getNamespace() ); + $showSignature = MWNamespace::wantSignatures( $title->getNamespace() ); } /**