summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-11 17:57:46 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-11 17:57:46 +0100
commit1b7fbc4614b577e14052fea50487ee5d0a301e93 (patch)
tree30ac8bfd172b4dd1f3a5da9611b452475056eac9 /cron.php
parent138865bbde25bb6193930c98e30c33913d19e367 (diff)
downloadplanet-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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index a32a392..688bebe 100644
--- a/cron.php
+++ b/cron.php
@@ -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";
}