Skip to content

Commit 8942f51

Browse files
committed
Separate out requests code.
Changelog excerpt: - Separated the code for performing outbound requests through cURL out to its own independent class.
1 parent 3330972 commit 8942f51

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
2323
[2020.11.27; Maikuolan]: Some minor code-style cleanup.
2424

2525
[2020.12.04; Maikuolan]: Maintenance release (dependencies update, repository cleanup, etc).
26+
27+
### v3.1.1
28+
29+
[2021.01.10; Maikuolan]: Separated the code for performing outbound requests through cURL out to its own independent class.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ __*Screenshot:*__
8888

8989
### Current major version development status:
9090

91-
⬇Stage reached⬇ ➡Major version➡ | v0 | v1 | v2 | v3
92-
:--|:-:|:-:|:-:|:-:
93-
Pre-Alpha<em><br />- Exploring early concepts/ideas. No code written/available yet.</em> | ✔ | ✔ | ✔ | ✔
94-
Alpha<em><br />- Branched, but unstable. Not production-ready (high risk if used).</em> | ✔ | ✔ | ✔ | ✔
95-
Beta<em><br />- Branched, but unstable. Not production-ready (low risk if used).</em> | ✔ | ✔ | ✔ | ✔
96-
Stable<em><br />- First production-ready version has been tagged/released.</em> | ✔ | ✔ | ✔ | ✔
91+
⬇Stage reached⬇ ➡Major version➡ | v0 | v1 | v2~v3
92+
:--|:-:|:-:|:-:
93+
Pre-Alpha<em><br />- Exploring early concepts/ideas. No code written/available yet.</em> | ✔ | ✔ | ✔
94+
Alpha<em><br />- Branched, but unstable. Not production-ready (high risk if used).</em> | ✔ | ✔ | ✔
95+
Beta<em><br />- Branched, but unstable. Not production-ready (low risk if used).</em> | ✔ | ✔ | ✔
96+
Stable<em><br />- First production-ready version has been tagged/released.</em> | ✔ | ✔ | ✔
9797
Mature<em><br />- Multiple stable versions/releases exist.</em> | ✔ | ✔ | ✔
9898
Locked<em><br />- Still maintained, but new features won't be implemented anymore.</em> | ✔ | ✔
9999
EoL/Dead<em><br />- Not maintained anymore. If possible, stop using, and update ASAP.</em> | ✔
100100

101101
---
102102

103103

104-
Last Updated: 16 October 2020 (2020.10.16).
104+
Last Updated: 12 December 2020 (2020.12.12).

src/FrontEnd.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Front-end handler (last modified: 2020.12.03).
11+
* This file: Front-end handler (last modified: 2021.01.10).
1212
*/
1313

1414
namespace phpMussel\FrontEnd;
@@ -691,7 +691,7 @@ public function view(string $Page = '')
691691

692692
/** Fetch remote phpMussel version information and cache it if necessary. */
693693
if (!($RemoteYAMLphpMussel = $this->Loader->Cache->getEntry('phpmussel-ver.yaml'))) {
694-
$RemoteYAMLphpMussel = $this->Loader->request($RemoteVerPath . 'phpmussel-ver.yaml', [], 8);
694+
$RemoteYAMLphpMussel = $this->Loader->Request->request($RemoteVerPath . 'phpmussel-ver.yaml', [], 8);
695695
$this->Loader->Cache->setEntry('phpmussel-ver.yaml', $RemoteYAMLphpMussel ?: '-', 86400);
696696
}
697697

@@ -731,7 +731,7 @@ public function view(string $Page = '')
731731

732732
/** Fetch remote PHP version information and cache it if necessary. */
733733
if (!($RemoteYamlPHP = $this->Loader->Cache->getEntry('php-ver.yaml'))) {
734-
$RemoteYamlPHP = $this->Loader->request($RemoteVerPath . 'php-ver.yaml', [], 8);
734+
$RemoteYamlPHP = $this->Loader->Request->request($RemoteVerPath . 'php-ver.yaml', [], 8);
735735
$this->Loader->Cache->setEntry('php-ver.yaml', $RemoteYamlPHP ?: '-', 86400);
736736
}
737737

@@ -1245,7 +1245,7 @@ public function view(string $Page = '')
12451245
$ThisDir['FieldOut'] .= sprintf(
12461246
'<input type="checkbox" class="auto" name="%1$s" id="%1$s"%2$s /><label for="%1$s" class="s">%3$s</label><br />',
12471247
$ThisDir['DirLangKey'] . '_' . $ChoiceKey,
1248-
$this->Loader->inCsv($ChoiceKey, $this->Loader->Configuration[$CatKey][$DirKey]) ? ' checked' : '',
1248+
$this->Loader->Request->inCsv($ChoiceKey, $this->Loader->Configuration[$CatKey][$DirKey]) ? ' checked' : '',
12491249
$ChoiceValue
12501250
);
12511251
} else {

0 commit comments

Comments
 (0)