mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
[enh]check version before includes
This commit is contained in:
parent
09dd1bfdcf
commit
a4fccc9bf8
1 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
require('constants.php');
|
require('constants.php');
|
||||||
require(LIB_PATH . '/lib_rss.php');
|
require(LIB_PATH . '/lib_rss.php');
|
||||||
require('app/Models/Configuration.php');
|
if (FRESHRSS_VERSION === '0.8.1'){
|
||||||
require('app/Models/Entry.php');
|
require('app/Models/Configuration.php');
|
||||||
|
require('app/Models/Entry.php');
|
||||||
|
}
|
||||||
|
|
||||||
$ch = curl_init(FRESHRSS_UPDATE_WEBSITE);
|
$ch = curl_init(FRESHRSS_UPDATE_WEBSITE);
|
||||||
$fp = fopen("update.php", "w");
|
$fp = fopen("update.php", "w");
|
||||||
|
|
Loading…
Reference in a new issue