Index: trunk/extensions/SemanticForms/specials/SF_UploadWindow.php |
— | — | @@ -942,10 +942,16 @@ |
943 | 943 | $destfilename = wfMsgHtml( 'destfilename' ); |
944 | 944 | $summary = wfMsgExt( 'fileuploadsummary', 'parseinline' ); |
945 | 945 | |
946 | | - $licenses = new Licenses(); |
947 | 946 | $license = wfMsgExt( 'license', array( 'parseinline' ) ); |
948 | 947 | $nolicense = wfMsgHtml( 'nolicense' ); |
949 | | - $licenseshtml = $licenses->getHtml(); |
| 948 | + // class changed in MW 1.16 |
| 949 | + if (method_exists('Licenses', 'getInputHtml')) { |
| 950 | + $licenses = new Licenses( array() ); |
| 951 | + $licenseshtml = $licenses->getInputHtml( null ); |
| 952 | + } else { |
| 953 | + $licenses = new Licenses(); |
| 954 | + $licenseshtml = $licenses->getHtml(); |
| 955 | + } |
950 | 956 | |
951 | 957 | $ulb = wfMsgHtml( 'uploadbtn' ); |
952 | 958 | |