From 87bc49809976a1d05a562b0ced800fab6369024b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=A1=D0=B0=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2?= Date: Wed, 4 Sep 2019 18:23:47 +0500 Subject: [PATCH] =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D0=BF=D1=82=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D0=B5=D1=80=D1=81?= =?UTF-8?q?=D0=B8=D0=B8=20ave.cms=203.26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ fieldsmanager/info.php | 20 ++++++++++++++++++++ fieldsmanager/lang/ru.txt | 4 ++++ fieldsmanager/module.php | 20 +------------------- fieldsmanager/sql.php | 2 +- 5 files changed, 28 insertions(+), 20 deletions(-) create mode 100644 fieldsmanager/info.php diff --git a/README.md b/README.md index 530df08..bb9b177 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,5 @@ ## Перед копированием модуля в папку modules, удалите файл README.md, копируйте только корневую папку fieldsmanager со всем ее содержимым внутри! +04.09.2019 - версия 0.26.2 - адаптация для версии ave.cms 3.26 + diff --git a/fieldsmanager/info.php b/fieldsmanager/info.php new file mode 100644 index 0000000..4742b25 --- /dev/null +++ b/fieldsmanager/info.php @@ -0,0 +1,20 @@ + 'fieldsmanager', + 'ModuleVersion' => '0.26.2', + 'ModuleAutor' => 'M@d D3n', + 'ModuleCopyright' => '© 2007-' . date('Y') . ' AVE.cms', + 'ModuleStatus' => 1, + 'ModuleIsFunction' => 0, + 'ModuleTemplate' => 0, + 'ModuleAdminEdit' => 1, + 'ModuleFunction' => 'mod_fieldsmanager', + 'ModuleTag' => null, + 'ModuleTagLink' => null, + 'ModuleAveTag' => null, + 'ModulePHPTag' => null + ); +?> \ No newline at end of file diff --git a/fieldsmanager/lang/ru.txt b/fieldsmanager/lang/ru.txt index 40ab561..a585f64 100644 --- a/fieldsmanager/lang/ru.txt +++ b/fieldsmanager/lang/ru.txt @@ -1 +1,5 @@ +[name] +MODULE_NAME = "Управление полями" +MODULE_DESCRIPTION = "Модуль для управления полями рубрик." + test = "Редактирование рубрики" \ No newline at end of file diff --git a/fieldsmanager/module.php b/fieldsmanager/module.php index 578171d..8f1182d 100644 --- a/fieldsmanager/module.php +++ b/fieldsmanager/module.php @@ -11,24 +11,6 @@ if (!defined('BASE_DIR')) exit; -if (defined('ACP')) -{ - $modul['ModuleName'] = 'Управление полями'; - $modul['ModuleSysName'] = 'fieldsmanager'; - $modul['ModuleVersion'] = '0.2'; - $modul['ModuleDescription'] = 'Модуль для управления полями рубрик.'; - $modul['ModuleAutor'] = 'M@d D3n'; - $modul['ModuleCopyright'] = '© 2007-' . date('Y'); - $modul['ModuleStatus'] = 1; - $modul['ModuleIsFunction'] = null; - $modul['ModuleAdminEdit'] = 1; - $modul['ModuleFunction'] = 'mod_fieldsmanager'; - $modul['ModuleTag'] = null; - $modul['ModuleTagLink'] = null; - $modul['ModuleAveTag'] = null; - $modul['ModulePHPTag'] = null; -} - /** * Администрирование */ @@ -39,7 +21,7 @@ if (defined('ACP') && !empty($_REQUEST['moduleaction'])) $_fm_dir = BASE_DIR . '/' . 'modules' . '/' . $_dir . '/'; $lang_file = $_fm_dir . 'lang' . '/' . $_SESSION['admin_language'] . '.txt'; - $AVE_Template->config_load($lang_file); + $AVE_Template->config_load($lang_file, 'module'); require_once($_fm_dir . 'class.fieldsmanager.php'); $FieldsManager = new FieldsManager; diff --git a/fieldsmanager/sql.php b/fieldsmanager/sql.php index 329eab8..2b7d421 100644 --- a/fieldsmanager/sql.php +++ b/fieldsmanager/sql.php @@ -19,7 +19,7 @@ $module_sql_update = array(); $module_sql_update[] = " UPDATE - `CPPREFIX_module` + `%%PRFX%%_module` SET ModuleFunction = '" . $modul['ModuleFunction'] . "', ModuleAveTag = '" . $modul['ModuleAveTag'] . "',