From c32ece6a5e5ebd5054511b035b56c5a8ff303438 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Fri, 5 Nov 2021 00:43:37 +0100 Subject: [PATCH] cosmetics --- CHANGELOG.md | 1 + _config.php | 31 ++++++++++++++++--------------- _define.php | 9 ++++----- _prepend.php | 9 ++++----- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e9bec5..38ab05b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ 0.2.x - add update from external repositories - fix permissions +- add copy to clipboard button 0.2.0 - 2021.09.28 - use xmlTag() to manage file content diff --git a/_config.php b/_config.php index 38a8e9f..cc95489 100644 --- a/_config.php +++ b/_config.php @@ -1,36 +1,37 @@ getURL() . '#plugins' : $_REQUEST['redir']; # -- Get settings -- $core->blog->settings->addNamespace('tweakStores'); $s = $core->blog->settings->tweakStores; -$tweakStores_active = $s->active; -$tweakStores_packman = $s->packman; +$tweakStores_active = $s->active; +$tweakStores_packman = $s->packman; $tweakStores_file_pattern = $s->file_pattern; # -- Set settings -- if (!empty($_POST['save'])) { try { - $tweakStores_active = !empty($_POST['tweakStores_active']); - $tweakStores_packman = !empty($_POST['tweakStores_packman']); + $tweakStores_active = !empty($_POST['tweakStores_active']); + $tweakStores_packman = !empty($_POST['tweakStores_packman']); $tweakStores_file_pattern = $_POST['tweakStores_file_pattern']; $s->put('active', $tweakStores_active); @@ -38,7 +39,7 @@ if (!empty($_POST['save'])) { $s->put('file_pattern', $tweakStores_file_pattern); dcPage::addSuccessNotice( - __('Configuration has been successfully updated.') + __('Configuration successfully updated') ); http::redirect( $list->getURL('module=tweakStores&conf=1&redir=' . $list->getRedir()) @@ -56,20 +57,20 @@ echo '

-

' . __('If enabled, new tab "Tweak stores" allows your to perfom actions relative to third-party repositories.') .'

+

' . __('If enabled, new tab "Tweak stores" allows your to perfom actions relative to third-party repositories.') . '

-

' . __('If enabled, plugin pacKman will (re)generate on the fly dcstore.xml file at root directory of the module.') .'

+

' . __('If enabled, plugin pacKman will (re)generate on the fly dcstore.xml file at root directory of the module.') . '

-

-

' . +

' . __('You can use widcard like %author%, %type%, %id%, %version%.') . '
' . __('For example on github https://github.com/MyGitName/%id%/releases/download/v%version%/%type%-%id%.zip') . '
' . __('Note: on github, you must create a release and join to it the module zip file.') . '

-'; \ No newline at end of file +'; diff --git a/_define.php b/_define.php index e821a8f..48d37a3 100644 --- a/_define.php +++ b/_define.php @@ -1,16 +1,15 @@ registerModule( 'details' => 'https://plugins.dotaddict.org/dc2/details/tweakStores', 'repository' => 'https://raw.githubusercontent.com/JcDenis/tweakStores/master/' ] -); \ No newline at end of file +); diff --git a/_prepend.php b/_prepend.php index bad57f1..be1e72e 100644 --- a/_prepend.php +++ b/_prepend.php @@ -1,18 +1,17 @@