diff --git a/inc/Config.php b/inc/Config.php
index 5eda42d..3a61b18 100644
--- a/inc/Config.php
+++ b/inc/Config.php
@@ -52,29 +52,29 @@ class Config
# -- Set settings --
try {
- $packman_pack_nocomment = !empty($_POST['packman_pack_nocomment']);
- $packman_pack_fixnewline = !empty($_POST['packman_pack_fixnewline']);
- $packman_pack_overwrite = !empty($_POST['packman_pack_overwrite']);
- $packman_pack_filename = (string) $_POST['packman_pack_filename'];
- $packman_secondpack_filename = (string) $_POST['packman_secondpack_filename'];
- $packman_pack_repository = (string) path::real($_POST['packman_pack_repository'], false);
- $packman_pack_excludefiles = (string) $_POST['packman_pack_excludefiles'];
+ $pack_nocomment = !empty($_POST['pack_nocomment']);
+ $pack_fixnewline = !empty($_POST['pack_fixnewline']);
+ $pack_overwrite = !empty($_POST['pack_overwrite']);
+ $pack_filename = (string) $_POST['pack_filename'];
+ $secondpack_filename = (string) $_POST['secondpack_filename'];
+ $pack_repository = (string) path::real($_POST['pack_repository'], false);
+ $pack_excludefiles = (string) $_POST['pack_excludefiles'];
$check = Utils::is_configured(
- $packman_pack_repository,
- $packman_pack_filename,
- $packman_secondpack_filename
+ $pack_repository,
+ $pack_filename,
+ $secondpack_filename
);
if ($check) {
$s = dcCore::app()->blog->settings->__get(Core::id());
- $s->put('packman_pack_nocomment', $packman_pack_nocomment);
- $s->put('packman_pack_fixnewline', $packman_pack_fixnewline);
- $s->put('packman_pack_overwrite', $packman_pack_overwrite);
- $s->put('packman_pack_filename', $packman_pack_filename);
- $s->put('packman_secondpack_filename', $packman_secondpack_filename);
- $s->put('packman_pack_repository', $packman_pack_repository);
- $s->put('packman_pack_excludefiles', $packman_pack_excludefiles);
+ $s->put('pack_nocomment', $pack_nocomment);
+ $s->put('pack_fixnewline', $pack_fixnewline);
+ $s->put('pack_overwrite', $pack_overwrite);
+ $s->put('pack_filename', $pack_filename);
+ $s->put('secondpack_filename', $secondpack_filename);
+ $s->put('pack_repository', $pack_repository);
+ $s->put('pack_excludefiles', $pack_excludefiles);
dcPage::addSuccessNotice(
__('Configuration has been successfully updated.')
@@ -103,8 +103,8 @@ class Config
' . __('Root') . '
-
';
} else {
$repo_path_modules = array_merge(
- Core::getPackages(dirname($s->get('packman_pack_repository') . '/' . $s->get('packman_pack_filename'))),
- Core::getPackages(dirname($s->get('packman_pack_repository') . '/' . $s->get('packman_secondpack_filename')))
+ Core::getPackages(dirname($s->get('pack_repository') . '/' . $s->get('pack_filename'))),
+ Core::getPackages(dirname($s->get('pack_repository') . '/' . $s->get('secondpack_filename')))
);
$plugins_path_modules = Core::getPackages(self::$plugins_path);
$themes_path_modules = Core::getPackages(self::$themes_path);