Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.inc |
— | — | @@ -43,7 +43,12 @@ |
44 | 44 | $query_string .= "&wpDestFile=$default_filename"; |
45 | 45 | $upload_window_url = $upload_window_page->getTitle()->getFullURL($query_string); |
46 | 46 | $upload_label = wfMsg('upload'); |
47 | | - $text = " <a href=\"$upload_window_url\" title=\"$upload_label\" rel=\"iframe\" rev=\"width:550 height:380\">$upload_label</a>"; |
| 47 | + // window needs to be bigger for MediaWiki version 1.16+ |
| 48 | + if (class_exists('HTMLForm')) |
| 49 | + $style = "width:650 height:500"; |
| 50 | + else |
| 51 | + $style = ''; |
| 52 | + $text = " <a href=\"$upload_window_url\" title=\"$upload_label\" rel=\"iframe\" rev=\"$style\">$upload_label</a>"; |
48 | 53 | return $text; |
49 | 54 | } |
50 | 55 | |