r80040 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80039‎ | r80040 | r80041 >
Date:21:13, 11 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Removed
Modified paths:
  • /trunk/extensions/LiveTranslate/LiveTranslate.hooks.php (modified) (history)
  • /trunk/extensions/LiveTranslate/LiveTranslate_Settings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiveTranslate/LiveTranslate_Settings.php
@@ -32,7 +32,3 @@
3333 # Default translation memory type.
3434 # TMT_LTF, TMT_TMX, TMT_GCSV
3535 $egLiveTranslateTMT = TMT_LTF;
36 -
37 -# The name of the page on which the special words translations dirctionary is defined.
38 -# NOTICE: This is only used for the initial setup. Use Special:LiveTranslate to modify after installation.
39 -$egLiveTranslateDirPage = 'Live Translate Dictionary';
Index: trunk/extensions/LiveTranslate/LiveTranslate.hooks.php
@@ -24,7 +24,7 @@
2525 * @return true
2626 */
2727 public static function onArticleViewHeader( Article &$article, &$outputDone, &$useParserCache ) {
28 - global $wgOut, $wgLang, $egLiveTranslateDirPage, $egGoogleApiKey, $egLiveTranslateLanguages;
 28+ global $wgOut, $wgLang, $egGoogleApiKey, $egLiveTranslateLanguages;
2929
3030 $title = $article->getTitle();
3131
@@ -210,8 +210,6 @@
211211 public static function onArticleSaveComplete( &$article, &$user, $text, $summary,
212212 $minoredit, $watchthis, $sectionanchor, &$flags, $revision, &$status, $baseRevId, &$redirect = null ) {
213213
214 - global $egLiveTranslateDirPage;
215 -
216214 $title = $article->getTitle();
217215
218216 // FIXME: Hitting the db on every page save should be avoided

Status & tagging log