@@ -29,19 +29,19 @@ |
||
| 29 | 29 | |
| 30 | 30 | if (!function_exists('vendorPath')) { |
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * @return bool|string returns path of composer vendor folder, and false if folder does not exist |
|
| 34 | - */ |
|
| 35 | - function vendorPath() { |
|
| 32 | + /** |
|
| 33 | + * @return bool|string returns path of composer vendor folder, and false if folder does not exist |
|
| 34 | + */ |
|
| 35 | + function vendorPath() { |
|
| 36 | 36 | |
| 37 | - if (file_exists(__DIR__ . '/vendor/')) { |
|
| 38 | - return __DIR__ . '/vendor'; |
|
| 39 | - } else { |
|
| 40 | - if (!file_exists(__DIR__ . '/../../')) { |
|
| 41 | - return false; |
|
| 42 | - } else { |
|
| 43 | - return __DIR__ . '/../..'; |
|
| 44 | - } |
|
| 45 | - } |
|
| 46 | - } |
|
| 37 | + if (file_exists(__DIR__ . '/vendor/')) { |
|
| 38 | + return __DIR__ . '/vendor'; |
|
| 39 | + } else { |
|
| 40 | + if (!file_exists(__DIR__ . '/../../')) { |
|
| 41 | + return false; |
|
| 42 | + } else { |
|
| 43 | + return __DIR__ . '/../..'; |
|
| 44 | + } |
|
| 45 | + } |
|
| 46 | + } |
|
| 47 | 47 | } |
| 48 | 48 | \ No newline at end of file |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | public function __construct($lang = 'en') { |
| 114 | 114 | |
| 115 | 115 | $this->module_path = dirname(__FILE__); |
| 116 | - $this->locale = new \SimpleXMLElement(self::getLocalesFileName($lang)); |
|
| 116 | + $this->locale = new \SimpleXMLElement(self::getLocalesFileName($lang)); |
|
| 117 | 117 | |
| 118 | 118 | if ($this->locale) { |
| 119 | 119 | $this->locale->registerXPathNamespace('cs', 'http://purl.org/net/xbiblio/csl'); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | */ |
| 109 | 109 | function __construct($csl = NULL, $lang = 'en') { |
| 110 | 110 | if ($csl) { |
| 111 | - $this->init($csl, $lang); |
|
| 111 | + $this->init($csl, $lang); |
|
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |