MediaWiki master
IncompatibleDiffTypesException.php
Go to the documentation of this file.
1<?php
34
39 public function __construct( $oldModel, $newModel ) {
40 $oldName = ContentHandler::getLocalizedName( $oldModel );
41 $newName = ContentHandler::getLocalizedName( $newModel );
42 parent::__construct( wfMessage( 'diff-incompatible', $oldName, $newName ) );
43 }
44
45}
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
Exception thrown when trying to render a diff between two content types which cannot be compared (thi...
Basic localized exception.