Index: trunk/extensions/Cite/Cite_body.php |
— | — | @@ -942,12 +942,11 @@ |
943 | 943 | * arbitrary number of tokens separated by [\t\n ] |
944 | 944 | */ |
945 | 945 | function genLinkLabels($group, $message) { |
946 | | - global $wgMessageCache; |
947 | | - |
948 | 946 | wfProfileIn( __METHOD__ ); |
949 | 947 | $text = false; |
950 | | - if (is_object($wgMessageCache)) |
951 | | - $text = $wgMessageCache->get( $message, true, false ); |
| 948 | + $msg = wfMessage( $message )->inContentLanguage(); |
| 949 | + if ( $msg->exists() ) |
| 950 | + $text = $msg->plain(); |
952 | 951 | $this->mLinkLabels[$group] = ($text == '') ? false : preg_split( '#[\n\t ]#', $text ); |
953 | 952 | wfProfileOut( __METHOD__ ); |
954 | 953 | } |