| Index: trunk/phase3/maintenance/parserTests.txt |
| — | — | @@ -7792,8 +7792,6 @@ |
| 7793 | 7793 | |
| 7794 | 7794 | !!test |
| 7795 | 7795 | formatdate parser function |
| 7796 | | -!! config |
| 7797 | | -wgUseDynamicDates=1 |
| 7798 | 7796 | !!input |
| 7799 | 7797 | {{#formatdate:2009-03-24}} |
| 7800 | 7798 | !! result |
| — | — | @@ -7803,8 +7801,6 @@ |
| 7804 | 7802 | |
| 7805 | 7803 | !!test |
| 7806 | 7804 | formatdate parser function, with default format |
| 7807 | | -!! config |
| 7808 | | -wgUseDynamicDates=1 |
| 7809 | 7805 | !!input |
| 7810 | 7806 | {{#formatdate:2009-03-24|mdy}} |
| 7811 | 7807 | !! result |
| — | — | @@ -7825,8 +7821,6 @@ |
| 7826 | 7822 | |
| 7827 | 7823 | !! test |
| 7828 | 7824 | Spacing of numbers in formatted dates |
| 7829 | | -!! config |
| 7830 | | -wgUseDynamicDates=1 |
| 7831 | 7825 | !! input |
| 7832 | 7826 | {{#formatdate:January 15}} |
| 7833 | 7827 | !! result |
| Index: trunk/phase3/includes/User.php |
| — | — | @@ -2705,7 +2705,7 @@ |
| 2706 | 2706 | |
| 2707 | 2707 | $confstr = $this->getOption( 'math' ); |
| 2708 | 2708 | $confstr .= '!' . $this->getStubThreshold(); |
| 2709 | | - if ( $wgUseDynamicDates ) { |
| | 2709 | + if ( $wgUseDynamicDates ) { # This is wrong (bug 24714) |
| 2710 | 2710 | $confstr .= '!' . $this->getDatePreference(); |
| 2711 | 2711 | } |
| 2712 | 2712 | $confstr .= '!' . ( $this->getOption( 'numberheadings' ) ? '1' : '' ); |
| Index: trunk/phase3/includes/parser/ParserOptions.php |
| — | — | @@ -71,10 +71,6 @@ |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | function getDateFormat() { |
| 75 | | - if ( !$this->getUseDynamicDates() ) { |
| 76 | | - throw new MWException( 'Getting DateFormat option without UseDynamicDates.' ); |
| 77 | | - } |
| 78 | | - |
| 79 | 75 | if ( !isset( $this->mDateFormat ) ) { |
| 80 | 76 | $this->mDateFormat = $this->mUser->getDatePreference(); |
| 81 | 77 | } |