Removed "Justify paragraphs" from MW user Preference.
authortonythomas01 <01tonythomas@gmail.com>
Thu, 5 Dec 2013 04:48:07 +0000 (10:18 +0530)
committertonythomas01 <01tonythomas@gmail.com>
Sat, 25 Jan 2014 04:27:57 +0000 (09:57 +0530)
Removed the option 'Justify paragraphs' from MW Preferences
as it is not a necessary option there.
Added RELEASE NOTES.

Bug: 52810
Change-Id: I1fe6a5857070828726077e6ba229b786c017c858

RELEASE-NOTES-1.23
includes/DefaultSettings.php
includes/Preferences.php
includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index fdefa0b..6b70ce6 100644 (file)
@@ -193,6 +193,7 @@ changes to languages because of Bugzilla reports.
 * (bug 52811) Preference "Enable section editing via [edit] links" was removed.
 * (bug 52813) Preference "Show table of contents (for pages with more than
   3 headings)" was removed.
+* (bug 52810) Preference "Justify paragraphs" was removed.
 
 ==== Removed classes ====
 * FakeMemCachedClient (deprecated in 1.18)
index 9264947..63883ab 100644 (file)
@@ -3989,7 +3989,6 @@ $wgDefaultUserOptions = array(
        'hideminor' => 0,
        'hidepatrolled' => 0,
        'imagesize' => 2,
-       'justify' => 0,
        'math' => 1,
        'minordefault' => 0,
        'newpageshidepatrolled' => 0,
index 04e9114..dbf4346 100644 (file)
@@ -761,14 +761,6 @@ class Preferences {
                        'label-message' => 'tog-showhiddencats'
                );
 
-               if ( $wgAllowUserCssPrefs ) {
-                       $defaultPreferences['justify'] = array(
-                               'type' => 'toggle',
-                               'section' => 'rendering/advancedrendering',
-                               'label-message' => 'tog-justify',
-                       );
-               }
-
                $defaultPreferences['numberheadings'] = array(
                        'type' => 'toggle',
                        'section' => 'rendering/advancedrendering',
index 424afce..8ce0ca7 100644 (file)
@@ -74,9 +74,6 @@ class ResourceLoaderUserCSSPrefsModule extends ResourceLoaderModule {
                        $rules[] = 'a:lang(ar), a:lang(kk-arab), a:lang(mzn), ' .
                        'a:lang(ps), a:lang(ur) { text-decoration: none; }';
                }
-               if ( $options['justify'] ) {
-                       $rules[] = "#article, #bodyContent, #mw_content { text-align: justify; }\n";
-               }
                if ( $options['editfont'] !== 'default' ) {
                        // Double-check that $options['editfont'] consists of safe characters only
                        if ( preg_match( '/^[a-zA-Z0-9_, -]+$/', $options['editfont'] ) ) {
index 21f73cc..ca1e2b2 100644 (file)
@@ -658,7 +658,6 @@ future releases. Also note that since each list value is wrapped in a unique
 
 # User preference toggles
 'tog-underline'               => 'Link underlining:',
-'tog-justify'                 => 'Justify paragraphs',
 'tog-hideminor'               => 'Hide minor edits in recent changes',
 'tog-hidepatrolled'           => 'Hide patrolled edits in recent changes',
 'tog-newpageshidepatrolled'   => 'Hide patrolled pages from new page list',
index ea45ee6..8fbb778 100644 (file)
@@ -28,7 +28,6 @@ $wgMessageStructure = array(
        ),
        'toggles' => array(
                'tog-underline',
-               'tog-justify',
                'tog-hideminor',
                'tog-hidepatrolled',
                'tog-newpageshidepatrolled',