leucosticte has uploaded a new change for review.

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


Change subject: Set $wgNoFollowLinks to false if "Authorized editors only" 
selected
......................................................................

Set $wgNoFollowLinks to false if "Authorized editors only" selected

Bug: 57115
Change-Id: I27775195a1a69cc83c2ea24640e563095591aff7
---
M includes/installer/LocalSettingsGenerator.php
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/55/95755/1

diff --git a/includes/installer/LocalSettingsGenerator.php 
b/includes/installer/LocalSettingsGenerator.php
index 56d8353..2ca29f2 100644
--- a/includes/installer/LocalSettingsGenerator.php
+++ b/includes/installer/LocalSettingsGenerator.php
@@ -220,6 +220,15 @@
                                                wfBoolToStr( $perm ) . ";\n";
                                }
                        }
+                       if ( $this->groupPermissions['*']['edit'] === false
+                               && $this->groupPermissions['*']['read'] !== 
false ) {
+                               $groupRights .= "\n# Set \$wgNoFollowLinks to 
true if you open up your wiki to editing by\n"
+                                       . "# the general public and wish to 
apply nofollow to external links as a\n"
+                                       . "# deterrent to spammers. Nofollow is 
not a comprehensive anti-spam solution\n"
+                                       . "# and open wikis will generally 
require other anti-spam measures; for more\n"
+                                       . "# information, see 
https://www.mediawiki.org/wiki/Manual:Combating_spam\n";
+                                       . "\$wgNoFollowLinks = false;\n";
+                       }
                }
 
                $wgServerSetting = "";

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I27775195a1a69cc83c2ea24640e563095591aff7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: leucosticte <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to