summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorMaurice Svay <maurice@svay.com>2011-07-10 14:21:56 +0200
committerMaurice Svay <maurice@svay.com>2011-07-10 14:21:56 +0200
commit836e30ccd9b3408cdc12a79191ae3df311d56040 (patch)
treed96e523f8dde41fb1268297ae03527ffa7789932 /cron.php
parentc1b569d50fc2825cc42fc276bf26133b42a358ec (diff)
downloadplanet-836e30ccd9b3408cdc12a79191ae3df311d56040.tar
planet-836e30ccd9b3408cdc12a79191ae3df311d56040.tar.gz
planet-836e30ccd9b3408cdc12a79191ae3df311d56040.tar.bz2
planet-836e30ccd9b3408cdc12a79191ae3df311d56040.tar.xz
planet-836e30ccd9b3408cdc12a79191ae3df311d56040.zip
Refactor app instantiation
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/cron.php b/cron.php
index 6ff46ae..1098e9b 100644
--- a/cron.php
+++ b/cron.php
@@ -1,18 +1,5 @@
<?php
-include_once(dirname(__FILE__).'/app/classes/Planet.class.php');
-include_once(dirname(__FILE__).'/app/lib/Cache.php');
-include_once(dirname(__FILE__).'/app/lib/lib.http.php');
-
-//Load configuration
-if (is_file(dirname(__FILE__).'/custom/config.yml')){
- $conf = Spyc::YAMLLoad(dirname(__FILE__).'/custom/config.yml');
- $PlanetConfig = new PlanetConfig($conf);
-} else {
- die('Config file (custom/config.yml) is missing.');
-}
-
-//Instantiate app
-$Planet = new Planet($PlanetConfig);
+include_once(dirname(__FILE__).'/app/app.php');
//Load OPML
if (0 < $Planet->loadOpml(dirname(__FILE__).'/custom/people.opml')) {