From e1ad85f71ad5984201822ecdcac41b0b0dcf639c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 9 Apr 2004 08:52:26 +0000 Subject: [PATCH] Fix notices --- includes/Title.php | 8 +------- languages/Language.php | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) 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' => '', -- 2.20.1