summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-04-29 15:26:01 +0200
committernashe <thomas@chauchefoin.fr>2017-04-29 15:26:01 +0200
commit3153148576f773b9a7011d17372d3a4e1b983071 (patch)
tree2bb81e7da946a942197236bba7f370b67770a00f /app
parentbd6708240e25f08a4c3c0cb5ce28802d9f651dd5 (diff)
downloadplanet-3153148576f773b9a7011d17372d3a4e1b983071.tar
planet-3153148576f773b9a7011d17372d3a4e1b983071.tar.gz
planet-3153148576f773b9a7011d17372d3a4e1b983071.tar.bz2
planet-3153148576f773b9a7011d17372d3a4e1b983071.tar.xz
planet-3153148576f773b9a7011d17372d3a4e1b983071.zip
Don't fetch feeds via postload.php if they are not in the OPML file
Fixes #84.
Diffstat (limited to 'app')
-rwxr-xr-xapp/app.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/app.php b/app/app.php
index 269d99c..ec4e446 100755
--- a/app/app.php
+++ b/app/app.php
@@ -34,3 +34,13 @@ $l10n = new Simplel10n($conf['locale']);
function _g($str, $comment='') {
return Simplel10n::getString($str);
}
+
+function custom_path($file = '')
+{
+ return __DIR__.'/../custom' . (!empty($file) ? '/'.$file : '');
+}
+
+function ensure_installed()
+{
+ return file_exists(custom_path('config.yml')) && file_exists(custom_path('people.opml'));
+}