Seditio Source
Root |
./othercms/PHPFusion 9.10.20/infusions/articles/classes/admin/articles_admin_model.php
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHP Fusion Inc
| https://phpfusion.com/
+--------------------------------------------------------+
| Filename: article_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\Articles;

class
ArticlesAdminModel extends ArticlesServer {
    private static
$admin_locale = [];

    public static function
getArticleAdminLocales() {
        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('', [ARTICLE_ADMIN_LOCALE, $admin_locale_path]);
           
self::$admin_locale = $locale;
        }

        return
self::$admin_locale;
    }
}