class/gwikiPage.php 1 location
|
@@ 137-143 (lines=7) @@
|
| 134 |
|
* |
| 135 |
|
* @return void |
| 136 |
|
*/ |
| 137 |
|
private function loadLanguage($name, $domain = '', $language = null) |
| 138 |
|
{ |
| 139 |
|
global $xoopsConfig; |
| 140 |
|
if (!@include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/" . $xoopsConfig['language'] . "/{$name}.php") { |
| 141 |
|
include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/english/{$name}.php"; |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
/** |
| 146 |
|
* Reset all page properties |
extras/gwiki.php 1 location
|
@@ 70-76 (lines=7) @@
|
| 67 |
|
* @param string $domain |
| 68 |
|
* @param null $language |
| 69 |
|
*/ |
| 70 |
|
function loadLanguage($name, $domain = '', $language = null) |
| 71 |
|
{ |
| 72 |
|
global $xoopsConfig; |
| 73 |
|
if (!@include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/" . $xoopsConfig['language'] . "/{$name}.php") { |
| 74 |
|
include_once XOOPS_ROOT_PATH . "/modules/{$domain}/language/english/{$name}.php"; |
| 75 |
|
} |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// Access module configs from outside module: |
| 79 |
|
$moduleHandler = xoops_getHandler('module'); |
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 |