=== New features in 1.24 ===
=== Bug fixes in 1.24 ===
+* (bug 62258) A bug was fixed in File::getUnscaledThumb when a height
+ restriction was present in the parameters. Images with both the "frame"
+ option and a size specification set will now always ignore the provided
+ size and display an unscaled image, as the documentation has always
+ claimed it would.
=== Web API changes in 1.24 ===
=== Other changes in 1.24 ===
* The deprecated jquery.delayedBind ResourceLoader module was removed.
+ * The deprecated function mw.util.toggleToc was removed.
== Compatibility ==
* @param $t Title
*/
function setTitle( $t ) {
- if ( !$t || $t instanceof FakeTitle ) {
+ if ( !$t ) {
$t = Title::newFromText( 'NO TITLE' );
}
$toc = Linker::tocList( $toc, $this->mOptions->getUserLangObj() );
$this->mOutput->setTOCHTML( $toc );
$toc = self::TOC_START . $toc . self::TOC_END;
+ $this->mOutput->addModules( 'mediawiki.toc' );
}
if ( $isMain ) {
$caption = '';
$params = array( 'frame' => array(), 'handler' => array(),
'horizAlign' => array(), 'vertAlign' => array() );
+ $seenformat = false;
foreach ( $parts as $part ) {
$part = trim( $part );
list( $magicName, $value ) = $mwArray->matchVariableStartToEnd( $part );
}
}
break;
+ case 'frameless':
+ case 'framed':
+ case 'thumbnail':
+ // use first appearing option, discard others.
+ $validated = ! $seenformat;
+ $seenformat = true;
+ break;
default:
# Most other things appear to be empty or numeric...
$validated = ( $value === false || is_numeric( trim( $value ) ) );
'pt-br' => 'resources/lib/moment/lang/pt-br.js',
'pt' => 'resources/lib/moment/lang/pt.js',
'ro' => 'resources/lib/moment/lang/ro.js',
- 'rs' => 'resources/lib/moment/lang/rs.js',
'ru' => 'resources/lib/moment/lang/ru.js',
'sk' => 'resources/lib/moment/lang/sk.js',
'sl' => 'resources/lib/moment/lang/sl.js',
'sq' => 'resources/lib/moment/lang/sq.js',
+ 'sr-el' => 'resources/lib/moment/lang/sr.js',
+ 'sr-ec' => 'resources/lib/moment/lang/sr-cyr.js',
'sv' => 'resources/lib/moment/lang/sv.js',
'ta' => 'resources/lib/moment/lang/ta.js',
'th' => 'resources/lib/moment/lang/th.js',
'tzm' => 'resources/lib/moment/lang/tzm.js',
'uk' => 'resources/lib/moment/lang/uk.js',
'uz' => 'resources/lib/moment/lang/uz.js',
- 'vn' => 'resources/lib/moment/lang/vn.js',
+ 'vi' => 'resources/lib/moment/lang/vi.js',
'zh-cn' => 'resources/lib/moment/lang/zh-cn.js',
'zh-tw' => 'resources/lib/moment/lang/zh-tw.js',
),
'jquery.client',
'jquery.mwExtension',
'mediawiki.notify',
- 'mediawiki.toc',
),
'position' => 'top', // For $wgPreloadJavaScriptMwUtil
'targets' => array( 'desktop', 'mobile' ),