Florianschmidtwelzow has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/210759

Change subject: Follow up I27d970
......................................................................

Follow up I27d970

Remove dead code in editor init.js.

Follow up: I27d970

Change-Id: Ie9d34202796653f52f024ecee7319b2bdcb2ff01
---
M i18n/en.json
M includes/Resources.php
M javascripts/modules/editor/init.js
3 files changed, 1 insertion(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/59/210759/1

diff --git a/i18n/en.json b/i18n/en.json
index 7218fd2..0611a73 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -93,7 +93,6 @@
        "mobile-frontend-editor-abusefilter-warning": "Warning: Are you sure 
you want to save this edit? There may be an issue with it.",
        "mobile-frontend-editor-anon": "Edit without logging in",
        "mobile-frontend-editor-anonwarning": "<strong>Warning</strong>: You 
are not logged in. Your IP address will be publicly visible if you make any 
edits. If you <strong>log in</strong> or <strong>create an account</strong>, 
your edits will be attributed to your username, along with other benefits.",
-       "mobile-frontend-editor-blocked": "Your account is blocked from 
editing.",
        "mobile-frontend-editor-blocked-info-loggedin": "Your account is 
blocked from editing. The block was made by {{GENDER:$2|$2}} for the following 
reason: $1",
        "mobile-frontend-editor-blocked-info": "Your IP address is blocked from 
editing. The block was made by {{GENDER:$1|$1}} for the following reason: $2.",
        "mobile-frontend-editor-cancel": "Cancel",
diff --git a/includes/Resources.php b/includes/Resources.php
index b2534fc..4fa84d9 100644
--- a/includes/Resources.php
+++ b/includes/Resources.php
@@ -498,7 +498,6 @@
                        'mobile-frontend-editor-disabled',
                        'mobile-frontend-editor-unavailable',
                        'mobile-frontend-editor-uploadenable',
-                       'mobile-frontend-editor-blocked',
                        'mobile-frontend-editor-blocked-info-loggedin' => 
array( 'parse' ),
                        'mobile-frontend-editor-blocked-info',
                        'mobile-frontend-editor-cta',
diff --git a/javascripts/modules/editor/init.js 
b/javascripts/modules/editor/init.js
index 416bd68..2a0eed8 100644
--- a/javascripts/modules/editor/init.js
+++ b/javascripts/modules/editor/init.js
@@ -310,13 +310,7 @@
                                initCta();
                        }
                } else {
-                       if ( mw.config.get( 'wgMFIsLoggedInUserBlocked' ) ) {
-                               $caEdit.removeClass( 'hidden' );
-                               // User is blocked. Both anonymous and logged 
in users can be blocked.
-                               showSorryToast( 
'mobile-frontend-editor-blocked' );
-                       } else {
-                               init();
-                       }
+                       init();
                }
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/210759
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie9d34202796653f52f024ecee7319b2bdcb2ff01
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.wel...@t-online.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to