diff options
author | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-11 17:57:46 +0100 |
---|---|---|
committer | Romain d'Alverny <rdalverny@gmail.com> | 2022-01-11 17:57:46 +0100 |
commit | 1b7fbc4614b577e14052fea50487ee5d0a301e93 (patch) | |
tree | 30ac8bfd172b4dd1f3a5da9611b452475056eac9 /cron.php | |
parent | 138865bbde25bb6193930c98e30c33913d19e367 (diff) | |
download | planet-1b7fbc4614b577e14052fea50487ee5d0a301e93.tar planet-1b7fbc4614b577e14052fea50487ee5d0a301e93.tar.gz planet-1b7fbc4614b577e14052fea50487ee5d0a301e93.tar.bz2 planet-1b7fbc4614b577e14052fea50487ee5d0a301e93.tar.xz planet-1b7fbc4614b577e14052fea50487ee5d0a301e93.zip |
Factor more config into PlanetConfig
This moves into PlanetConfig:
* people.opml, cache dir path definition,
* installation check,
* config upgrade when needed,
* responsibility for providing config values
instead of $conf global array).
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,11 +2,11 @@ include_once(__DIR__.'/app/app.php'); //Load OPML -if (0 < $Planet->loadOpml(__DIR__.'/custom/people.opml')) { +if (0 < $Planet->loadOpml($PlanetConfig->getOpmlFile())) { $Planet->download(1.0); } -if ($conf['debug'] === true) { +if ($PlanetConfig->getDebug()) { foreach ($Planet->errors as $error) { echo $error->toString() . "\n"; } |