Fixed complete breakage of Special:Upload due to r66913. Fatal JS error "summary...
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 27 May 2010 07:19:03 +0000 (07:19 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 27 May 2010 07:19:03 +0000 (07:19 +0000)
skins/common/edit.js

index 17d29e8..4ce781f 100644 (file)
@@ -231,7 +231,10 @@ hookEvent( 'load', function() {
 
 //make sure edit summary does not exceed byte limit
 addOnloadHook(function () {
-       var summary = document.getElementById('wpSummary');
+       var summary = document.getElementById( 'wpSummary' );
+       if ( !summary ) {
+               return;
+       }
        summary.maxLength = 250; //L must be capitalized in length.
 
        checkSummary = function (e) {