jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/378788 )
Change subject: Use consistent comment style in PHP files
......................................................................
Use consistent comment style in PHP files
Change-Id: I0ff8b83c8d36b8d6343715cb1cf39d501c5de408
---
M ApiVisualEditor.php
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
DLynch: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php
index 2aa093a..89e43e3 100644
--- a/ApiVisualEditor.php
+++ b/ApiVisualEditor.php
@@ -287,7 +287,7 @@
}
if ( $content === '' &&
$params['preload'] ) {
$preloadTitle =
Title::newFromText( $params['preload'] );
- # Check for existence to avoid
getting MediaWiki:Noarticletext
+ // Check for existence to avoid
getting MediaWiki:Noarticletext
if ( $preloadTitle instanceof
Title &&
$preloadTitle->exists() &&
$preloadTitle->userCan( 'read' )
@@ -373,7 +373,7 @@
if ( MWNamespace::getRestrictionLevels(
$title->getNamespace() ) !== [ '' ] ) {
// Page protected from editing
if ( $title->isProtected( 'edit' ) ) {
- # Is the title semi-protected?
+ // Is the title semi-protected?
if ( $title->isSemiProtected()
) {
$protectedClasses[] =
'mw-textarea-sprotected';
@@ -381,7 +381,7 @@
} else {
$protectedClasses[] =
'mw-textarea-protected';
- # Then it must be
protected based on static groups (regular)
+ // Then it must be
protected based on static groups (regular)
$noticeMsg =
'protectedpagewarning';
}
$notices[] = $this->msg(
$noticeMsg )->parseAsBlock() .
--
To view, visit https://gerrit.wikimedia.org/r/378788
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0ff8b83c8d36b8d6343715cb1cf39d501c5de408
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>
Gerrit-Reviewer: DLynch <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits