Index: trunk/extensions/EducationProgram/specials/SpecialEditTerm.php |
— | — | @@ -137,7 +137,7 @@ |
138 | 138 | } |
139 | 139 | |
140 | 140 | function getInputHTML( $value ) { |
141 | | - $value = explode( 'T', wfTimestamp( TS_ISO_8601, $value ) ); |
| 141 | + $value = explode( 'T', wfTimestamp( TS_ISO_8601, strtotime( $value ) ) ); |
142 | 142 | return parent::getInputHTML( $value[0] ); |
143 | 143 | } |
144 | 144 | |
Index: trunk/extensions/EducationProgram/specials/SpecialEPFormPage.php |
— | — | @@ -234,8 +234,15 @@ |
235 | 235 | protected function getFormFields() { |
236 | 236 | $fields = array(); |
237 | 237 | |
238 | | - $fields['id'] = array ( 'type' => 'hidden' ); |
| 238 | + $fields['id'] = array( 'type' => 'hidden' ); |
239 | 239 | |
| 240 | + // This sort of sucks as well. Meh, HTMLForm is odd. |
| 241 | + if ( $this->getRequest()->wasPosted() |
| 242 | + && $this->getUser()->matchEditToken( $this->getRequest()->getVal( 'wpEditToken' ) ) |
| 243 | + && $this->getRequest()->getCheck( 'wpitem-id' ) ) { |
| 244 | + $fields['id']['default'] = $this->getRequest()->getInt( 'wpitem-id' ); |
| 245 | + } |
| 246 | + |
240 | 247 | return $fields; |
241 | 248 | } |
242 | 249 | |