Bearsampp 2025.8.29
Loading...
Searching...
No Matches
class.action.switchLang.php
Go to the documentation of this file.
1<?php
2/*
3 * Copyright (c) 2021-2024 Bearsampp
4 * License: GNU General Public License version 3 or later; see LICENSE.txt
5 * Author: Bear
6 * Website: https://bearsampp.com
7 * Github: https://github.com/Bearsampp
8 */
9
16{
22 public function __construct($args)
23 {
24 global $bearsamppConfig;
25
26 // Check if the first argument is set and not empty, then replace the language configuration.
27 if (isset($args[0]) && !empty($args[0])) {
28 $bearsamppConfig->replace(Config::CFG_LANG, $args[0]);
29 }
30 }
31}
const CFG_LANG
global $bearsamppConfig
Definition homepage.php:27