Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -1038,6 +1038,7 @@ |
1039 | 1039 | 'right-userrights-interwiki', |
1040 | 1040 | 'right-siteadmin', |
1041 | 1041 | 'right-reset-passwords', |
| 1042 | + 'right-override-export-depth', |
1042 | 1043 | ), |
1043 | 1044 | 'rightslog' => array( |
1044 | 1045 | 'rightslog', |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1259,6 +1259,8 @@ |
1260 | 1260 | # $wgGroupPermissions['bureaucrat']['reset-passwords'] = true; |
1261 | 1261 | // Permission to change users' groups assignments across wikis |
1262 | 1262 | #$wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true; |
| 1263 | +// Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth |
| 1264 | +#$wgGroupPermissions['bureaucrat']['override-export-depth'] = true; |
1263 | 1265 | |
1264 | 1266 | #$wgGroupPermissions['sysop']['deleterevision'] = true; |
1265 | 1267 | // To hide usernames from users and Sysops |
— | — | @@ -2298,10 +2300,13 @@ |
2299 | 2301 | * pages linked to from the pages you specify. Since this number |
2300 | 2302 | * can become *insanely large* and could easily break your wiki, |
2301 | 2303 | * it's disabled by default for now. |
| 2304 | + * |
| 2305 | + * There's a HARD CODED limit of 5 levels of recursion to prevent a |
| 2306 | + * crazy-big export from being done by someone setting the depth |
| 2307 | + * number too high. In other words, last resort safety net. |
2302 | 2308 | */ |
2303 | 2309 | $wgExportMaxLinkDepth = 0; |
2304 | 2310 | |
2305 | | - |
2306 | 2311 | /** |
2307 | 2312 | * Edits matching these regular expressions in body text |
2308 | 2313 | * will be recognised as spam and rejected automatically. |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1721,6 +1721,7 @@ |
1722 | 1722 | 'right-userrights-interwiki' => 'Edit user rights of users on other wikis', |
1723 | 1723 | 'right-siteadmin' => 'Lock and unlock the database', |
1724 | 1724 | 'right-reset-passwords' => "Reset other users' passwords", |
| 1725 | +'right-override-export-depth' => 'Export pages including linked pages up to a depth of 5', |
1725 | 1726 | |
1726 | 1727 | # User rights log |
1727 | 1728 | 'rightslog' => 'User rights log', |