diff options
author | nashe <thomas@chauchefoin.fr> | 2017-04-29 15:26:01 +0200 |
---|---|---|
committer | nashe <thomas@chauchefoin.fr> | 2017-04-29 15:26:01 +0200 |
commit | 3153148576f773b9a7011d17372d3a4e1b983071 (patch) | |
tree | 2bb81e7da946a942197236bba7f370b67770a00f /app | |
parent | bd6708240e25f08a4c3c0cb5ce28802d9f651dd5 (diff) | |
download | planet-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-x | app/app.php | 10 |
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')); +} |