include/functions.php 1 location
|
@@ 44-50 (lines=7) @@
|
41 |
|
* @param string $domain |
42 |
|
* @param null $language |
43 |
|
*/ |
44 |
|
function loadLanguage($name, $domain = '', $language = null) |
45 |
|
{ |
46 |
|
global $xoopsConfig; |
47 |
|
if (!@include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/" . $xoopsConfig['language'] . "/{$name}.php") { |
48 |
|
include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/english/{$name}.php"; |
49 |
|
} |
50 |
|
} |
51 |
|
|
52 |
|
/** |
53 |
|
* @param $var |
class/GwikiPage.php 1 location
|
@@ 133-139 (lines=7) @@
|
130 |
|
* |
131 |
|
* @return void |
132 |
|
*/ |
133 |
|
private function loadLanguage($name, $domain = '', $language = null) |
134 |
|
{ |
135 |
|
global $xoopsConfig; |
136 |
|
if (!@include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/" . $xoopsConfig['language'] . "/{$name}.php") { |
137 |
|
include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/english/{$name}.php"; |
138 |
|
} |
139 |
|
} |
140 |
|
|
141 |
|
/** |
142 |
|
* Reset all page properties |
extras/gwiki.php 1 location
|
@@ 75-81 (lines=7) @@
|
72 |
|
* @param string $domain |
73 |
|
* @param null $language |
74 |
|
*/ |
75 |
|
function loadLanguage($name, $domain = '', $language = null) |
76 |
|
{ |
77 |
|
global $xoopsConfig; |
78 |
|
if (!@include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/" . $xoopsConfig['language'] . "/{$name}.php") { |
79 |
|
include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/english/{$name}.php"; |
80 |
|
} |
81 |
|
} |
82 |
|
|
83 |
|
// Access module configs from outside module: |
84 |
|
$moduleHelper = Xmf\Module\Helper::getHelper($dir); |