Index: trunk/extensions/Imagetabs/imagetabs.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | * (at your option) any later version. |
8 | 8 | * |
9 | 9 | * @author Roan Kattouw <roan.kattouw@home.nl> |
10 | | - * @copyright Copyright (C) 2007 Roan Kattouw |
| 10 | + * @copyright Copyright © 2007 Roan Kattouw |
11 | 11 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License |
12 | 12 | * |
13 | 13 | * An extension that shows interwiki tabs above Image: pages |
— | — | @@ -19,26 +19,22 @@ |
20 | 20 | $wgExtensionFunctions[] = 'createImageTabs_setup'; |
21 | 21 | $wgExtensionCredits['other'][] = array( |
22 | 22 | 'name' => 'Imagetabs', |
23 | | - 'author' => 'Joe Beaudoin Jr. and Roan Kattouw', |
| 23 | + 'author' => array('Joe Beaudoin Jr.', 'Roan Kattouw'), |
24 | 24 | 'description' => 'Adds tabs with interwiki links above Image: pages', |
25 | 25 | 'version' => '1.0', |
26 | 26 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Imagetabs' |
27 | 27 | ); |
28 | 28 | |
29 | | -function createImageTabs_setup() |
30 | | -{ |
| 29 | +function createImageTabs_setup() { |
31 | 30 | global $wgHooks; |
32 | 31 | $wgHooks['SkinTemplateContentActions'][] = 'createImageTabs_hook'; |
33 | 32 | } |
34 | 33 | |
35 | | -function createImageTabs_hook(&$content_actions) |
36 | | -{ |
| 34 | +function createImageTabs_hook(&$content_actions) { |
37 | 35 | global $wgEnableInterwikiImageTabs, $wgInterwikiImageTabs, $wgTitle, $wgLocalInterwiki; |
38 | | - if($wgEnableInterwikiImageTabs && $wgTitle->getNamespace() == NS_IMAGE) |
39 | | - { |
| 36 | + if($wgEnableInterwikiImageTabs && $wgTitle->getNamespace() == NS_IMAGE) { |
40 | 37 | $i = 0; |
41 | | - foreach($wgInterwikiImageTabs as $prefix => $caption) |
42 | | - { |
| 38 | + foreach($wgInterwikiImageTabs as $prefix => $caption) { |
43 | 39 | // Go to prefix:Image:title. Image: is automatically translated if necessary. |
44 | 40 | $titleObj = Title::newFromText($prefix . ":Image:" . $wgTitle->getText()); |
45 | 41 | // Check that we don't link to ourselves |
— | — | @@ -51,4 +47,4 @@ |
52 | 48 | } |
53 | 49 | } |
54 | 50 | return true; |
55 | | -} |
| 51 | +} |
\ No newline at end of file |