| Index: trunk/extensions/WikiEditor/WikiEditor.php |
| — | — | @@ -318,7 +318,6 @@ |
| 319 | 319 | 'wikieditor-toolbar-tool-link-lookslikeinternal-ext', |
| 320 | 320 | 'wikieditor-toolbar-tool-link-empty', |
| 321 | 321 | 'wikieditor-toolbar-tool-file', |
| 322 | | - 'wikieditor-toolbar-tool-file-pre', |
| 323 | 322 | 'wikieditor-toolbar-tool-file-example', |
| 324 | 323 | 'wikieditor-toolbar-tool-reference', |
| 325 | 324 | 'wikieditor-toolbar-tool-reference-title', |
| Index: trunk/extensions/WikiEditor/modules/ext.wikiEditor.toolbar.js |
| — | — | @@ -153,8 +153,7 @@ |
| 154 | 154 | 'action': { |
| 155 | 155 | 'type': 'encapsulate', |
| 156 | 156 | 'options': { |
| 157 | | - // FIXME: Why the hell was this done this way? |
| 158 | | - 'preMsg': [ 'wikieditor-toolbar-tool-file-pre', '[[' ], |
| | 157 | + 'pre': '[[' + mediaWiki.config.get( 'wgFormattedNamespaces' )[6] + ':', |
| 159 | 158 | 'periMsg': 'wikieditor-toolbar-tool-file-example', |
| 160 | 159 | 'post': "]]" |
| 161 | 160 | } |
| Index: trunk/extensions/WikiEditor/WikiEditor.i18n.php |
| — | — | @@ -91,7 +91,6 @@ |
| 92 | 92 | 'wikieditor-toolbar-tool-link-lookslikeinternal-ext' => 'External link', |
| 93 | 93 | 'wikieditor-toolbar-tool-link-empty' => "You did not enter anything to link to.", |
| 94 | 94 | 'wikieditor-toolbar-tool-file' => 'Embedded file', |
| 95 | | - 'wikieditor-toolbar-tool-file-pre' => '$1{{ns:file}}:', |
| 96 | 95 | 'wikieditor-toolbar-tool-file-example' => 'Example.jpg', |
| 97 | 96 | 'wikieditor-toolbar-tool-reference' => 'Reference', |
| 98 | 97 | 'wikieditor-toolbar-tool-reference-example' => 'Insert footnote text here', |