| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function init() |
||
| 39 | { |
||
| 40 | parent::init(); |
||
| 41 | if (!$this->ShowAllPages) { |
||
| 42 | Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js'); |
||
| 43 | Requirements::javascript('sitemappage/javascript/SiteMapPage.js'); |
||
| 44 | Requirements::themedCSS('SiteMapPage', "sitemappage"); |
||
| 45 | } else { |
||
| 46 | Requirements::themedCSS('SiteMapPageOpen', "sitemappage"); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | |||
| 56 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.