| @@ 169-179 (lines=11) @@ | ||
| 166 | $finalThumbParams, $opts |
|
| 167 | ) |
|
| 168 | ); |
|
| 169 | if ( !$fit ) { |
|
| 170 | if ( count( $pageIds[NS_FILE] ) == 1 ) { |
|
| 171 | // See the 'the user is screwed' comment above |
|
| 172 | $this->setContinueEnumParameter( 'start', |
|
| 173 | wfTimestamp( TS_ISO_8601, $img->getTimestamp() ) ); |
|
| 174 | } else { |
|
| 175 | $this->setContinueEnumParameter( 'continue', |
|
| 176 | $this->getContinueStr( $img ) ); |
|
| 177 | } |
|
| 178 | break; |
|
| 179 | } |
|
| 180 | } |
|
| 181 | ||
| 182 | // Now get the old revisions |
|
| @@ 204-213 (lines=10) @@ | ||
| 201 | $finalThumbParams, $opts |
|
| 202 | ) |
|
| 203 | ); |
|
| 204 | if ( !$fit ) { |
|
| 205 | if ( count( $pageIds[NS_FILE] ) == 1 ) { |
|
| 206 | $this->setContinueEnumParameter( 'start', |
|
| 207 | wfTimestamp( TS_ISO_8601, $oldie->getTimestamp() ) ); |
|
| 208 | } else { |
|
| 209 | $this->setContinueEnumParameter( 'continue', |
|
| 210 | $this->getContinueStr( $oldie ) ); |
|
| 211 | } |
|
| 212 | break; |
|
| 213 | } |
|
| 214 | } |
|
| 215 | if ( !$fit ) { |
|
| 216 | break; |
|