Index: trunk/extensions/Babel/Babel.class.php |
— | — | @@ -68,15 +68,10 @@ |
69 | 69 | $top = '! class="mw-babel-header" | ' . $top; |
70 | 70 | } |
71 | 71 | $footer = wfMessage( 'babel-footer', self::$title->getDBkey() )->inContentLanguage(); // TODO: allow user language |
72 | | - if ( $footer->isDisabled() ) { |
73 | | - $footer = ''; |
74 | | - } else { |
75 | | - $footer = $footer->text(); |
76 | | - $url = wfMessage( 'babel-footer-url' )->inContentLanguage(); |
77 | | - if ( ! $url->isDisabled() ) { |
78 | | - $footer = '[['.$url->text().'|'.$footer.']]'; |
79 | | - } |
80 | | - $footer = '! class="mw-babel-footer" | ' . $footer; |
| 72 | + $url = wfMessage( 'babel-footer-url' )->inContentLanguage(); |
| 73 | + $showfooter = ''; |
| 74 | + if ( !$footer->isDisabled() && !$url->isDisabled() ) { |
| 75 | + $showfooter = '! class="mw-babel-footer" | [['.$url->text().'|'.$footer->text().']]'; |
81 | 76 | } |
82 | 77 | $cellspacing = Babel::mHtmlAttrib( 'cellspacing', 'babel-box-cellspacing' ); |
83 | 78 | $cellpadding = Babel::mHtmlAttrib( 'cellpadding', 'babel-box-cellpadding' ); |
— | — | @@ -87,7 +82,7 @@ |
88 | 83 | |- |
89 | 84 | | $content |
90 | 85 | |- |
91 | | -$footer |
| 86 | +$showfooter |
92 | 87 | |} |
93 | 88 | EOT; |
94 | 89 | return $tower; |