Michael
32b997823f
Don't forget the brackets
4 years ago
Michael
82086eea36
Bugfix: When a value was only in the .htconfig.php then it never was stored
4 years ago
Michael
422be7e212
Improved handling of non string values in the config
4 years ago
Michael
becfeaf0b7
Bugfix: Caching of non string cache values now works.
4 years ago
Michael
6bbc0e4c78
Bugfix: The caching of values didn't really work for boolean values
4 years ago
Michael
0548099f6c
The config class now makes less database reads.
4 years ago
Roland Häder
361a55155c
Don't cherry-pick: reverted unrelated changes (dbm::is_result())
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
c75d6ad850
More dbm::is_result() instead of count()
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
a8dc8b288c
import dbm here to avoid adding everywhere the namespace (if later changed,
only here it needs change, cool ha? ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
6a8a36f12d
More usage of dbm::is_result($r) instead of count($r):
- count() returns very different results and never a boolean (not even false on
error condition).
- therefore you should NOT use it in boolean expressions. This still *can* be
done in PHP because of its lazyness. But it is discouraged if it comes to
more clean code.
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
293436e5fd
Some rewrites:
- max_proccesses_reach() and maxload_reached() (why no _ behind max?) are called
both way, static and with object reference.
- this is strongly discouraged and should be avoided as its support (in PHP) may
be dropped in future releases.
- used $a = get_app(); to encapsulate code (even when the function does
currently the same, it may be changed later)
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Hypolite Petovan
d0b95e642f
Reverted changes to config
5 years ago
Michael Vogel
b99f5b576e
Fixed code structure
5 years ago
Michael Vogel
deb2fee2f0
pconfig: Improved behaviour with already stored values
5 years ago
Hypolite Petovan
b806f87874
Formatting changes to make @annando happy
5 years ago
Michael Vogel
561f45b83b
And again ...
5 years ago
Michael Vogel
b429b85680
CSR changes, split dbclean in separate processes if worker is active
5 years ago
Hypolite Petovan
f9d713b228
Settings save: Switch from strict to fuzzy comparison
5 years ago
Michael Vogel
a8bef370d3
Some code adjustements and performance improvements to the DFRN feed.
5 years ago
Hypolite Petovan
a5923bdd4f
Wrong whitespaces
5 years ago
Hypolite Petovan
62bd32c1ac
Improve performance of settings save by not querying the DB if submitted value is the same
5 years ago
Hypolite Petovan
c168d7d4ca
Enforce coding standards in Config.php and PConfig.php
5 years ago
Michael Vogel
3e5cf5290e
Improved queries, more uncommitted queries
5 years ago
Michael Vogel
4322b56c0b
Ensure that with multiple entries the newest one will be fetched
5 years ago
Hypolite Petovan
3c85fb8c9a
Fix Issue #2816
- Change (P)Config::set to use INSERT >>> ON DUPLICATE KEY UPDATE
- Add DB update
5 years ago
Hypolite Petovan
76382147ae
Fix Issue #2816
- Fix wrong variable name in Config and PConfig
5 years ago
Hypolite Petovan
f9678bb6c3
Remove extraneous comments
- If needed, the version control system can be used to restore this code
5 years ago
Fabrixxm
6e28cdf2ee
Fix Config and PConfig ::get() on new keys
5 years ago
rabuzarus
64753f474c
fix config & pconfig
5 years ago
Fabrixxm
136ae34245
Add `$default_value` parameter to `Config::get()` and `PConfig::get()`
5 years ago
Fabrixxm
6c346b1ab6
Move `Config` and `PConfig` classes in `\Friendica\Core namespace`
5 years ago