Thread:Extension talk:Realnames/Block Page Title Conversion/reply

Here's the patch in case you have an IT department that forces you to be interested: Index: Realnames.body.php

=
====================================================== --- Realnames.body.php	(revision 223) +++ Realnames.body.php	(revision 226) @@ -278,7 +278,7 @@   * @note requires MediaWiki 1.7.0 */       public static function hookBeforePageDisplay(&$out, &$sk = false) { -   global $wgTitle; +   global $wgTitle, $wgRealnamesPageTitle; // pre 1.16 no getTitle $title = method_exists($out,'getTitle') ? $out->getTitle : $wgTitle; @@ -294,8 +294,10 @@    if (self::debug) { echo "hookBeforePageDisplay: searching article title... \n"; } -   // this should also affect the html head title -   $out->setPageTitle(self::lookForBare($out->getPageTitle)); +   if ( $wgRealnamesPageTitle ) { +     // this should also affect the html head title +     $out->setPageTitle(self::lookForBare($out->getPageTitle)); +   }     // subtitle (say, on revision pages) if (self::debug) {

Index: Realnames.php

=
====================================================== --- Realnames.php	(revision 223) +++ Realnames.php	(revision 226) @@ -107,6 +107,12 @@ */  $wgRealnamesNamespaces = array; +/** + * Used to block the conversion of Page titles (when set to false) + * @since 2011-09-350 0.1 + */ +$wgRealnamesPageTitle = true; + if (isset($wgConfigureAdditionalExtensions) && is_array($wgConfigureAdditionalExtensions)) { /* (not our var to doc) @@ -121,6 +127,7 @@          'wgRealnamesBlank' => 'bool', 'wgRealnamesStyles' => 'array', 'wgRealnamesNamespaces' => 'array', +         'wgRealnamesPageTitle' => 'bool', ),      'array' => array( 'wgRealnamesStyles' => 'assoc', To block page title conversions, set $wgRealnamesPageTitle to false in LocalSetttings.php. Otherwise, it works as intended.