From: Bryan Tong Minh Date: Sun, 30 Jan 2011 14:26:38 +0000 (+0000) Subject: Follow-up r80775: Check for meta.tiff as well. X-Git-Tag: 1.31.0-rc.0~32298 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/wiki/supprimer.php?a=commitdiff_plain;h=86ecb9fcd79c1433b77e78f4c6a51baa74d9b4c1;p=lhc%2Fweb%2Fwiklou.git Follow-up r80775: Check for meta.tiff as well. Bump wgStyleVersion --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 7d9af50333..1bffdb4d70 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1597,7 +1597,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches do not keep obsolete copies of global * styles. */ -$wgStyleVersion = '302'; +$wgStyleVersion = '303'; /** * This will cache static pages for non-logged-in users to reduce diff --git a/resources/mediawiki.special/mediawiki.special.upload.js b/resources/mediawiki.special/mediawiki.special.upload.js index ab2cd8e5ee..b060e1387a 100644 --- a/resources/mediawiki.special/mediawiki.special.upload.js +++ b/resources/mediawiki.special/mediawiki.special.upload.js @@ -63,7 +63,7 @@ jQuery( function( $ ) { var img = new Image(), rotation = 0; - if ( meta && meta.tiff.Orientation ) { + if ( meta && meta.tiff && meta.tiff.Orientation ) { rotation = (360 - function () { // See includes/media/Bitmap.php switch ( meta.tiff.Orientation.value ) {