Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public static function addJavascripts($culture = null) |
||
11 | { |
||
12 | $path = sfConfig::get('sf_sfSelect2Widgets_select2_web_dir'); |
||
13 | $available_cultures = sfConfig::get('sf_sfSelect2Widgets_available_cultures'); |
||
14 | |||
15 | $javascripts = array($path . '/select2.js'); |
||
16 | |||
17 | if ($culture != 'en' && in_array($culture, $available_cultures)) { |
||
18 | $javascripts[] = $path . '/select2_locale_' . $culture . '.js'; |
||
19 | } |
||
20 | |||
21 | return $javascripts; |
||
22 | } |
||
23 | |||
36 |