Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | * @file |
7 | 7 | * @author Siebrand Mazeland |
8 | 8 | * @author Niklas Laxström |
9 | | - * @copyright Copyright © 2008-2011 Siebrand Mazeland, Niklas Laxström |
| 9 | + * @copyright Copyright © 2008-2012 Siebrand Mazeland, Niklas Laxström |
10 | 10 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
11 | 11 | */ |
12 | 12 | |
— | — | @@ -113,15 +113,13 @@ |
114 | 114 | $this->noEmpty = (bool)$params[2]; |
115 | 115 | } |
116 | 116 | |
117 | | - // Whether the form has been submitted |
118 | | - $submitted = $request->getVal( 'x' ) === 'D'; |
| 117 | + // Whether the form has been submitted, only relevant if not including |
| 118 | + $submitted = !$this->including() && $request->getVal( 'x' ) === 'D'; |
119 | 119 | |
120 | 120 | // Default booleans to false if the form was submitted |
121 | | - if ( !$this->including() ) { |
122 | | - $this->target = $request->getVal( $this->targetValueName, $this->target ); |
123 | | - $this->noComplete = $request->getBool( 'suppresscomplete', $this->noComplete && !$submitted ); |
124 | | - $this->noEmpty = $request->getBool( 'suppressempty', $this->noEmpty && !$submitted ); |
125 | | - } |
| 121 | + $this->target = $request->getVal( $this->targetValueName, $this->target ); |
| 122 | + $this->noComplete = $request->getBool( 'suppresscomplete', $this->noComplete && !$submitted ); |
| 123 | + $this->noEmpty = $request->getBool( 'suppressempty', $this->noEmpty && !$submitted ); |
126 | 124 | |
127 | 125 | if ( !$this->including() ) { |
128 | 126 | TranslateUtils::addSpecialHelpLink( $wgOut, 'Help:Extension:Translate/Statistics_and_reporting' ); |