- Make it fully compatible with MediaWiki 1.38. Deal with all deprecated features:
- Use
$wgOut->disableClientCache()instead of$wgOut->enableClientCache(false), - Use
RequestContext::getMain()->getUser()instead of$wgUser, - Use
MediaWiki\MediaWikiServices::getInstance()->getUserFactory()->newFromName($revUserName)instead ofUser::newFromName($revUserName), - Use
MediaWiki\MediaWikiServices::getInstance()->getPermissionManager()->userHasRight($user, 'embed_pdf')instead of$user->isAllowed('embed_pdf'), - Use
MediaWiki\MediaWikiServices::getInstance()->getRepoGroup()->findFile($filename)instead ofwfFindFile($filename).
- Use
- Tidy up the code, and:
- Remove the unused function
embedObject()- note theembed()function does this when$iframe=true, - Replace some short names:
$awith$anchor;$rewith$matches.
- Remove the unused function
- According to a filter applied in
ve.init.mw.ArticleTargetSaver.js(see alsoT65229) the HTML tag<object>is not compatible with Visual Editor, so the default value for$iframein theextension.jsonfile is switched totrue. - Add CSS class
pdf-embedto the generated (iframe/object) HTML tag. - Bulgarian Translations provided by Spas Z. Spasov spas.z.spasov@metalevel.tech
- Add backwards compatibility. Already tested with MediaWiki versions 1.35, 1.36, 1.38.
- Updated extension.json to support MediaWiki 1.30+.
- Switched over to iframes to support newer browsers.
- Converted to extension registration.
- Forcing a max-width: 100%; on the object container.
- Added page parameter.
- German Translations provided by kghbln kontakt@wikihoster.net
- Fix PHP notices being thrown for some parameters.
- Missing language string.