MediaWiki master
IncompatibleDiffTypesException.php
Go to the documentation of this file.
1<?php
25
36
41 public function __construct( $oldModel, $newModel ) {
42 $oldName = ContentHandler::getLocalizedName( $oldModel );
43 $newName = ContentHandler::getLocalizedName( $newModel );
44 parent::__construct( wfMessage( 'diff-incompatible', $oldName, $newName ) );
45 }
46
47}
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.
Base class for content handling.