*/
public function setUniqueId($uniqueId, $RSSisPermalink = false) {
$this->UniqueId = $uniqueId;
- $this->RSSIsPermalink = $isPermalink;
+ $this->RSSIsPermalink = $RSSisPermalink;
}
/**
* @param int $height
*/
private function makeSizeLink( $params, $width, $height ) {
- global $wgLang;
-
$params['width'] = $width;
$params['height'] = $height;
$thumbnail = $this->displayImg->transform( $params );
}
break;
}
-
+
// Check if we can make the requested thumbnail, and get transform parameters.
$finalThumbParams = $this->mergeThumbParams( $img, $scale, $params['urlparam'] );
( is_null( $params['end'] ) || $img->getTimestamp() >= $params['end'] )
) {
$gotOne = true;
-
+
$fit = $this->addPageSubItem( $pageId,
self::getInfo( $img, $prop, $result, $finalThumbParams ) );
if ( !$fit ) {
if ( $mime ) {
$vals['mime'] = $file->getMimeType();
}
-
+
if ( $mediatype ) {
$vals['mediatype'] = $file->getMediaType();
}
$overhead = "SAVEPOINT $ignore ON ROLLBACK RETAIN CURSORS";
db2_exec( $this->mConn, $overhead, $this->mStmtOptions );
- $this->execute( $stmt, $row );
+ $res2 = $this->execute( $stmt, $row );
if ( !$res2 ) {
$this->installPrint( 'Last error:' );
foreach ( $res as $row ) {
if ( ! User::isValidUserName( $row->user_name ) ) {
$this->error( sprintf( "%s: %6d: '%s'\n", wfWikiID(), $row->user_id, $row->user_name ) );
- wfDebugLog( 'checkUsernames', $out );
+ wfDebugLog( 'checkUsernames', $$row->user_name );
}
}
}