Seditio Source
Root |
./othercms/PHPFusion 9.10.20/infusions/faq/classes/admin/faq_admin_model.php
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHP Fusion Inc
| https://phpfusion.com/
+--------------------------------------------------------+
| Filename: faq_admin_model.php
| Author: Core Development Team
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
namespace PHPFusion\FAQ;

class
FaqAdminModel extends FaqServer {
    private static
$admin_locale = [];

    public function
__construct() {
       
parent::__construct();

       
self::$faq_settings = get_settings("faq");
    }

    public static function
getFaqAdminLocale() {
        if (empty(
self::$admin_locale)) {
           
$admin_locale_path = LOCALE.'English/admin/settings.php';
            if (
file_exists(LOCALE.LOCALESET.'admin/settings.php')) {
               
$admin_locale_path = LOCALE.LOCALESET.'admin/settings.php';
            }
           
$locale = fusion_get_locale('', [FAQ_LOCALE, $admin_locale_path]);
           
self::$admin_locale = $locale;
        }

        return
self::$admin_locale;
    }
}