Conditions | 3 |
Paths | 4 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public static function start() |
||
29 | { |
||
30 | $compatibility = array( |
||
31 | self::SUBSITES => null, |
||
32 | self::TRANSLATABLE => null, |
||
33 | ); |
||
34 | |||
35 | if (ClassInfo::exists(Subsite::class)) { |
||
36 | $compatibility[self::SUBSITES] = Subsite::$disable_subsite_filter; |
||
37 | Subsite::disable_subsite_filter(true); |
||
38 | } |
||
39 | |||
40 | if (ClassInfo::exists(Translatable::class)) { |
||
41 | $compatibility[self::TRANSLATABLE] = Translatable::locale_filter_enabled(); |
||
42 | Translatable::disable_locale_filter(); |
||
43 | } |
||
44 | |||
45 | return $compatibility; |
||
46 | } |
||
47 | |||
62 |