Hypolite Petovan
799e60aa62
Replace existing autoloader with Composer-supplied
...
- Move Friendica namespace to `src`
- Move required `ezyang/htmlpurifier` to vendor
- Remove existing static autoloader
- Change boot.php reference to the autoloader
2017-03-31 23:02:38 -04:00
82086eea36
Bugfix: When a value was only in the .htconfig.php then it never was stored
2017-01-28 06:18:16 +00:00
422be7e212
Improved handling of non string values in the config
2017-01-25 05:33:23 +00:00
becfeaf0b7
Bugfix: Caching of non string cache values now works.
2017-01-24 18:55:07 +00:00
6bbc0e4c78
Bugfix: The caching of values didn't really work for boolean values
2017-01-19 22:47:20 +00:00
0548099f6c
The config class now makes less database reads.
2017-01-18 21:45:32 +00:00
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>
2016-12-13 15:24:44 +01:00
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>
2016-12-13 10:44:13 +01:00
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>
2016-12-13 10:16:36 +01:00
Michael Vogel
b99f5b576e
Fixed code structure
2016-10-23 22:12:45 +00:00
Michael Vogel
deb2fee2f0
pconfig: Improved behaviour with already stored values
2016-10-23 07:49:21 +00:00
Michael Vogel
561f45b83b
And again ...
2016-10-22 10:33:18 +00:00
Michael Vogel
a8bef370d3
Some code adjustements and performance improvements to the DFRN feed.
2016-10-21 23:04:04 +00:00
Michael Vogel
3e5cf5290e
Improved queries, more uncommitted queries
2016-10-17 18:38:51 +00:00
Michael Vogel
4322b56c0b
Ensure that with multiple entries the newest one will be fetched
2016-10-09 07:18:52 +00:00
Hypolite Petovan
3c85fb8c9a
Fix Issue #2816
...
- Change (P)Config::set to use INSERT >>> ON DUPLICATE KEY UPDATE
- Add DB update
2016-10-01 21:40:41 -04:00
Hypolite Petovan
76382147ae
Fix Issue #2816
...
- Fix wrong variable name in Config and PConfig
2016-09-30 09:22:35 -04:00
Hypolite Petovan
f9678bb6c3
Remove extraneous comments
...
- If needed, the version control system can be used to restore this code
2016-09-30 09:22:00 -04:00
Fabrixxm
6e28cdf2ee
Fix Config and PConfig ::get() on new keys
2016-06-13 10:28:40 +02:00
rabuzarus
64753f474c
fix config & pconfig
2016-06-12 18:55:20 +02:00
Fabrixxm
136ae34245
Add $default_value
parameter to Config::get()
and PConfig::get()
2016-06-10 12:00:34 +02:00
Fabrixxm
6c346b1ab6
Move Config
and PConfig
classes in \Friendica\Core namespace
2016-06-10 11:52:01 +02:00