| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | public static function initExtension( $credits = [] ) { |
||
| 43 | |||
| 44 | $version = 'UNKNOWN' ; |
||
| 45 | |||
| 46 | // See https://phabricator.wikimedia.org/T151136 |
||
| 47 | if ( isset( $credits['version'] ) ) { |
||
| 48 | $version = $credits['version']; |
||
| 49 | } |
||
| 50 | |||
| 51 | define( 'SMW_IMAGECAPTION_VERSION', $version ); |
||
| 52 | |||
| 53 | $GLOBALS['wgMessagesDirs']['SemanticImageCaption'] = __DIR__ . '/i18n'; |
||
| 54 | } |
||
| 55 | |||
| 64 |