Bugfixes/MediaWiki 1.19

From Linkwiki
tbd @

MW 1.19.0

DPL

Bugfix by User:Maiden taiwan [1], DPL.php
(no more "fatal erro" because of class "Image")
search replace
$img = Image::newFromName($article->mTitle->getText());
$img = wfFindFile($article->mTitle);
Bugfix by User:Maiden taiwan [2], DPLMain.php
(no more "fatal error" because of "Title::prefix")
search replace
if ($bShowNamespace) $sTitleText = str_replace( '_', ' ', $title->prefix($sTitleText) );
if ($bShowNamespace) $sTitleText = str_replace( '_', ' ', self::prefix($title, $sTitleText) );
search replace
add under "auxiliary functions":
// Copy of Title::prefix(), now private
       private static function prefix($title, $name) {
               $p = '';
               if ( $title->getInterwiki() != '') {
                       $p = $title->getInterwiki() . ':';
               }

               if ( 0 != $title->getNamespace() ) {
                       $p .= $title->getNsText() . ':';
               }
               return $p . $name;
       }