Jdlrobson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/267810
Change subject: Avoid even more extension.json confusion
......................................................................
Avoid even more extension.json confusion
The config is now happening in extension.json so don't keep these files
hanging about..
Bug: T88057
Change-Id: Ie4cc1bdaacf20ac401d479cd1e579c05368c3791
---
D includes/Config.php
D includes/config/Analytics.php
D includes/config/Site.php
3 files changed, 0 insertions(+), 187 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/10/267810/1
diff --git a/includes/Config.php b/includes/Config.php
deleted file mode 100644
index bed0508..0000000
--- a/includes/Config.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
- require_once __DIR__ . "/config/Apps.php";
- require_once __DIR__ . "/config/Analytics.php";
- require_once __DIR__ . "/config/Editing.php";
- require_once __DIR__ . "/config/Experimental.php";
- require_once __DIR__ . "/config/Legacy.php";
- require_once __DIR__ . "/config/Nearby.php";
- require_once __DIR__ . "/config/Search.php";
- require_once __DIR__ . "/config/Site.php";
- require_once __DIR__ . "/config/Skin.php";
- require_once __DIR__ . "/config/Uploads.php";
- require_once __DIR__ . "/config/Wikidata.php";
diff --git a/includes/config/Analytics.php b/includes/config/Analytics.php
deleted file mode 100644
index 3da5a74..0000000
--- a/includes/config/Analytics.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-if ( !defined( 'MEDIAWIKI' ) ) {
- die( 'Not an entry point.' );
-}
-
-/**
- * Whether or not to enable the use of the X-Analytics HTTP response header
- *
- * This header is used for analytics purposes.
- * @see
https://www.mediawiki.org/wiki/Analytics/Kraken/Data_Formats/X-Analytics
- * @var bool
- */
-$wgMFEnableXAnalyticsLogging = false;
-
-/**
- * Sample rate to log events for language button and overlay usage in mobile
web
- *
- * @var array
- */
-$wgMFSchemaMobileWebLanguageSwitcherSampleRate = array(
- 'beta' => 0,
- 'stable' => 0
-);
diff --git a/includes/config/Site.php b/includes/config/Site.php
deleted file mode 100644
index 5d4f52a..0000000
--- a/includes/config/Site.php
+++ /dev/null
@@ -1,152 +0,0 @@
-<?php
-if ( !defined( 'MEDIAWIKI' ) ) {
- die( 'Not an entry point.' );
-}
-
-/**
- * Pages with smaller parsed HTML size are not cached
- * Set to 0 to cache everything or to some large value to disable caching
completely
- */
-$wgMFMinCachedPageSize = 64 * 1024;
-
-/**
- * Set this to true to automatically show mobile view depending on people's
user-agent.
- * WARNING: Make sure that your caching infrastructure is configured
appropriately, to avoid
- * people receiving cached versions of pages intended for someone else's
devices.
- */
-$wgMFAutodetectMobileView = false;
-
-
-/**
- * Controls whether tablets should be shown the mobile site. Works only if
- * $wgMFAutodetectMobileView is true.
- */
-$wgMFShowMobileViewToTablets = true;
-
-/**
- * Devices with available screen of this value and less will have some styles
- * adapted for improved reading on small screens.
- */
-$wgMFDeviceWidthMobileSmall = 280;
-
-/**
- * Minimum available screen width at which a device can be considered a
tablet/desktop
- * The number is currently based on the device width of a Samsung Galaxy S5
mini.
- */
-$wgMFDeviceWidthTablet = 720;
-
-/**
- * Template for mobile URLs.
- *
- * This will be used to transcode regular URLs into mobile URLs for the
- * mobile view.
- *
- * It's possible to specify the 'mobileness' of the URL in the host portion of
- * the URL.
- *
- * You can either statically or dynamically create the host-portion of your
- * mobile URL. To statically create it, just set $wgMobileUrlTemplate to
- * the static hostname. For example:
- * $wgMobileUrlTemplate = "mobile.mydomain.com";
- *
- * Alternatively, the host definition can include placeholders for different
- * parts of the 'host' section of a URL. The placeholders are denoted by '%h'
- * and followed with a digit that maps to the position of a host-part of the
- * original, non-mobile URL. Take the host 'en.wikipedia.org' for example.
- * '%h0' maps to 'en', '%h1' maps to 'wikipedia', and '%h2' maps to 'org'.
- * So, if you wanted a mobile URL scheme that turned "en.wikipedia.org" into
- * "en.m.wikipedia.org", your URL template would look like:
- * %h0.m.%h1.%h2
- */
-$wgMobileUrlTemplate = '';
-
-/**
- * The number of seconds the 'useformat' cookie should be valid
- *
- * The useformat cookie gets set when a user manually elects to view
- * either the mobile or desktop view of the site.
- *
- * If this value is not set, it will default to $wgCookieExpiration
- */
-$wgMobileFrontendFormatCookieExpiry = null;
-
-/**
- * Set to false to allow search engines to index your mobile pages. So far,
Google seems
- * to mix mobile and non-mobile pages in its search results, creating
confusion.
- */
-$wgMFNoindexPages = true;
-
-/**
- * Set the domain of the stopMobileRedirect cookie
- *
- * If this value is not set, it will default to the top domain of the host name
- * (eg en.wikipedia.org = .wikipedia.org)
- * If you want to set this to a top domain (to cover all subdomains), be sure
- * to include the preceding '.' (eg .wikipedia.org NOT wikipedia.org)
- */
-$wgMFStopRedirectCookieHost = null;
-
-/**
- * Make the logos configurable.
- *
- * Currently, 'copyright', 'copyright-width', and 'copyright-height' elements
are supported.
- * 'copyright' is the URL of the logo displayed in the footer
- * 'copyright-width' (optional) is the width in pixels of the copyright image
you want to display
- * 'copyright-height' (optional) is the height in pixels of the copyright
image you want to display
- * If the actual 'copyright' dimensions are 200x30, then you may want to set
the width and height
- * to 100 and 15 respectively (in order to support retina screens).
- *
- * Example: array(
- * 'copyright' => '/images/mysite_copyright_logo.png',
- * 'copyright-width' => 100,
- * 'copyright-height' => 15,
- * );
- */
-$wgMFCustomLogos = array();
-
-/**
- * Path to the logo used in the login/signup form
- * The standard height is 72px
- * FIXME: Merge with $wgMFCustomLogos
- */
-$wgMobileFrontendLogo = false;
-
-/**
- * Whether to append a trademark notice to the sitename in the page footer.
- *
- * If set to true or 'unregistered', adds a ™ to the sitename.
- * If set to 'registered' adds a ® to the sitename.
- * If set to false, adds nothing (the default).
- *
- * You can also edit the 'mobile-frontend-footer-sitename' message directly.
- */
-$wgMFTrademarkSitename = false;
-
-/**
- * Name of the class used for mobile device detection, must be inherited from
- * IDeviceDetector.
- */
-$wgDeviceDetectionClass = 'DeviceDetection';
-
-/**
- * Whether beta mode is enabled
- */
-$wgMFEnableBeta = false;
-
-/**
- * Optional string to mobile friendly url for donation page.
- */
-$wgMFDonationUrl = false;
-
-/**
- * The content namespace(s) that Special:Nearby and Special:Random should use.
- * Should be one or more of NS_* constants, pipe-separated.
- * @var int|string
- */
-$wgMFContentNamespace = NS_MAIN;
-
-/**
- * Sets RSS feed <link> being outputted or not.
- * @var bool
- */
-$wgMFRSSFeedLink = false;
--
To view, visit https://gerrit.wikimedia.org/r/267810
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie4cc1bdaacf20ac401d479cd1e579c05368c3791
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits