From: Brion Vibber Date: Fri, 9 Apr 2004 08:52:26 +0000 (+0000) Subject: Fix notices X-Git-Tag: 1.3.0beta1~533 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=e1ad85f71ad5984201822ecdcac41b0b0dcf639c;p=lhc%2Fweb%2Fwiklou.git Fix notices --- diff --git a/includes/Title.php b/includes/Title.php index 8b86a2431e..77b1a95671 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -602,13 +602,7 @@ class Title { # Clean up whitespace # $t = preg_replace( "/[\\s_]+/", "_", $this->mDbkeyform ); - if ( "_" == @$t{0} ) { - $t = substr( $t, 1 ); - } - $l = strlen( $t ); - if ( $l && ( "_" == $t{$l-1} ) ) { - $t = substr( $t, 0, $l-1 ); - } + $t = preg_replace( '/^_*(.*?)_*$/', '$1', $t ); if ( "" == $t ) { wfProfileOut( $fname ); diff --git a/languages/Language.php b/languages/Language.php index c641382939..eef96c0cbb 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1463,6 +1463,7 @@ amusement.", 'accesskey-preferences' => '', 'accesskey-mycontris' => 'y', 'accesskey-login' => 'o', +'accesskey-logout' => 'o', 'accesskey-search' => 'f', 'accesskey-mainpage' => 'z', 'accesskey-portal' => '',