|
@@ -8,7 +8,7 @@ discard block |
|
|
block discarded – undo |
|
8
|
8
|
private $plugins; |
|
9
|
9
|
private $languageOrderCache = array(); |
|
10
|
10
|
|
|
11
|
|
- public function __construct($resource, $globalPlugins=array()) |
|
|
11
|
+ public function __construct($resource, $globalPlugins = array()) |
|
12
|
12
|
{ |
|
13
|
13
|
$this->resource = $resource; |
|
14
|
14
|
$plugins = $this->resource->allLiterals('skosmos:usePlugin'); |
|
@@ -36,7 +36,7 @@ discard block |
|
|
block discarded – undo |
|
36
|
36
|
$langs = $this->getLanguages(); |
|
37
|
37
|
$deflang = reset($langs); // picking the first one from the list with reset since the keys are not numeric |
|
38
|
38
|
if (sizeof($langs) > 1) { |
|
39
|
|
- trigger_error("Default language for vocabulary '" . $this->getShortName() . "' unknown, choosing '$deflang'.", E_USER_WARNING); |
|
|
39
|
+ trigger_error("Default language for vocabulary '".$this->getShortName()."' unknown, choosing '$deflang'.", E_USER_WARNING); |
|
40
|
40
|
} |
|
41
|
41
|
|
|
42
|
42
|
return $deflang; |
Please login to merge, or discard this patch.