X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=e15c98834aa5687baa9abdde24787585254520e5;hb=47437e0653542aae57ea456b24486efb48ee8aac;hp=38ad63b6ecc6e21f97987b5e6f8fd7319e14a22b;hpb=5928784f9936aafebbba597c6d6ddc04db5f4d7b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 38ad63b6ec..e15c98834a 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -685,7 +685,7 @@ $wgUseSharedUploads = false; /** * Full path on the web server where shared uploads can be found */ -$wgSharedUploadPath = "http://commons.wikimedia.org/shared/images"; +$wgSharedUploadPath = null; /** * Fetch commons image description pages and display them on the local wiki? @@ -695,7 +695,7 @@ $wgFetchCommonsDescriptions = false; /** * Path on the file system where shared uploads can be found. */ -$wgSharedUploadDirectory = "/var/www/wiki3/images"; +$wgSharedUploadDirectory = null; /** * DB name with metadata about shared directory. @@ -945,22 +945,11 @@ $wgTrustedMediaFormats = [ /** * Plugins for media file type handling. * Each entry in the array maps a MIME type to a class name + * + * Core media handlers are listed in MediaHandlerFactory, + * and extensions should use extension.json. */ -$wgMediaHandlers = [ - 'image/jpeg' => 'JpegHandler', - 'image/png' => 'PNGHandler', - 'image/gif' => 'GIFHandler', - 'image/tiff' => 'TiffHandler', - 'image/webp' => 'WebPHandler', - 'image/x-ms-bmp' => 'BmpHandler', - 'image/x-bmp' => 'BmpHandler', - 'image/x-xcf' => 'XCFHandler', - 'image/svg+xml' => 'SvgHandler', // official - 'image/svg' => 'SvgHandler', // compat - 'image/vnd.djvu' => 'DjVuHandler', // official - 'image/x.djvu' => 'DjVuHandler', // compat - 'image/x-djvu' => 'DjVuHandler', // compat -]; +$wgMediaHandlers = []; /** * Plugins for page content model handling. @@ -1681,6 +1670,9 @@ $wgEnotifWatchlist = false; /** * Allow users to enable email notification ("enotif") when someone edits their * user talk page. + * + * The owner of the user talk page must also have the 'enotifusertalkpages' user + * preference set to true. */ $wgEnotifUserTalk = false; @@ -1691,9 +1683,17 @@ $wgEnotifUserTalk = false; $wgEnotifRevealEditorAddress = false; /** - * Send notification mails on minor edits to watchlist pages. This is enabled - * by default. User talk notifications are affected by this, $wgEnotifUserTalk, and - * the nominornewtalk user right. + * Potentially send notification mails on minor edits to pages. This is enabled + * by default. If this is false, users will never be notified on minor edits. + * + * If it is true, editors with the 'nominornewtalk' right (typically bots) will still not + * trigger notifications for minor edits they make (to any page, not just user talk). + * + * Finally, if the watcher/recipient has the 'enotifminoredits' user preference set to + * false, they will not receive notifications for minor edits. + * + * User talk notifications are also affected by $wgEnotifMinorEdits, the above settings, + * $wgEnotifUserTalk, and the preference described there. */ $wgEnotifMinorEdits = true; @@ -3193,6 +3193,15 @@ $wgHTMLFormAllowTableFormat = true; */ $wgUseMediaWikiUIEverywhere = false; +/** + * Whether to label the store-to-database-and-show-to-others button in the editor + * as "Save page"/"Save changes" if false (the default) or, if true, instead as + * "Publish page"/"Publish changes". + * + * @since 1.28 + */ +$wgEditButtonPublishNotSave = false; + /** * Permit other namespaces in addition to the w3.org default. * @@ -4458,13 +4467,6 @@ $wgPasswordPolicy = [ ], ]; -/** - * Disable AuthManager - * @since 1.27 - * @deprecated since 1.27, for use during development only - */ -$wgDisableAuthManager = false; - /** * Configure AuthManager * @@ -5069,7 +5071,7 @@ $wgGroupPermissions['user']['upload'] = true; $wgGroupPermissions['user']['reupload'] = true; $wgGroupPermissions['user']['reupload-shared'] = true; $wgGroupPermissions['user']['minoredit'] = true; -$wgGroupPermissions['user']['purge'] = true; // can use ?action=purge without clicking "ok" +$wgGroupPermissions['user']['purge'] = true; $wgGroupPermissions['user']['sendemail'] = true; $wgGroupPermissions['user']['applychangetags'] = true; $wgGroupPermissions['user']['changetags'] = true; @@ -5717,6 +5719,8 @@ $wgGrantPermissions['sendemail']['sendemail'] = true; $wgGrantPermissions['createaccount']['createaccount'] = true; +$wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true; + /** * @var Array Map of grants to their UI grouping * @since 1.27 @@ -5750,6 +5754,8 @@ $wgGrantPermissionGroups = [ 'createaccount' => 'administration', 'highvolume' => 'high-volume', + + 'privateinfo' => 'private-information', ]; /** @@ -8036,9 +8042,13 @@ $wgJobRunRate = 1; * When $wgJobRunRate > 0, try to run jobs asynchronously, spawning a new process * to handle the job execution, instead of blocking the request until the job * execution finishes. + * * @since 1.23 */ -$wgRunJobsAsync = true; +$wgRunJobsAsync = ( + !function_exists( 'register_postsend_function' ) && + !function_exists( 'fastcgi_finish_request' ) +); /** * Number of rows to update per job @@ -8184,13 +8194,6 @@ $wgTextModelsToParse = [ CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments. ]; -/** - * Whether the user must enter their password to change their e-mail address - * - * @since 1.20 - */ -$wgRequirePasswordforEmailChange = true; - /** * Register handlers for specific types of sites. * @@ -8352,7 +8355,7 @@ $wgEventRelayerConfig = [ * PHP version, and chosen database backend. The Wikimedia Foundation shares this data with * MediaWiki developers to help guide future development efforts. * - * For details about what data is sent, see: https://www.mediawiki.org/wiki/Pingback + * For details about what data is sent, see: https://www.mediawiki.org/wiki/Manual:$wgPingback * * @var bool * @since 1.28