Follow-up r80775: Check for meta.tiff as well.
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 30 Jan 2011 14:26:38 +0000 (14:26 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sun, 30 Jan 2011 14:26:38 +0000 (14:26 +0000)
Bump wgStyleVersion

includes/DefaultSettings.php
resources/mediawiki.special/mediawiki.special.upload.js

index 7d9af50..1bffdb4 100644 (file)
@@ -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
index ab2cd8e..b060e13 100644 (file)
@@ -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 ) {