XoopsModules25x /
xlanguage
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Extended Language |
||
| 4 | * |
||
| 5 | * You may not change or alter any portion of this comment or credits |
||
| 6 | * of supporting developers from this source code or any supporting source code |
||
| 7 | * which is considered copyrighted (c) material of the original comment or credit authors. |
||
| 8 | * This program is distributed in the hope that it will be useful, |
||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
| 11 | * |
||
| 12 | * @copyright XOOPS Project (https://xoops.org) |
||
| 13 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License |
||
| 14 | * @package xlanguage |
||
| 15 | * @author trabis <[email protected]> |
||
| 16 | */ |
||
| 17 | |||
| 18 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Xlanguage core preloads |
||
| 22 | * |
||
| 23 | * @copyright XOOPS Project (https://xoops.org) |
||
| 24 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License |
||
| 25 | * @author trabis <[email protected]> |
||
| 26 | */ |
||
| 27 | class XlanguageCorePreload extends XoopsPreloadItem |
||
| 28 | { |
||
| 29 | /** |
||
| 30 | * @param $args |
||
| 31 | */ |
||
| 32 | public static function eventCoreIncludeCommonLanguage($args) |
||
| 33 | { |
||
| 34 | global $xoopsConfig; |
||
|
0 ignored issues
–
show
|
|||
| 35 | require_once __DIR__ . '/../api.php'; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
Instead of relying on
globalstate, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state