Merge branch 'i92-ignore-external_refresh' into 'master'

Pass in the refresh interval to fetch_external

If we don't pass in the refresh interval then a default of 1 hour is used, this
isn't really what is intended. (Fixes #92)

See merge request !22
This commit is contained in:
Florian Schlichting 2016-06-02 19:50:19 +00:00
commit 928ec35ae1

View File

@ -115,7 +115,7 @@ function update_external ( $request )
if ( $qry->Exec('DAVResource') && $qry->rows() > 0 && $row = $qry->Fetch() ) {
if ( $row->bind_id != 0 ) {
dbg_error_log("external", "external resource needs updating, this might take a minute : %s", $row->url );
fetch_external ( $row->bind_id );
fetch_external ( $row->bind_id, $c->external_refresh . ' minutes' );
}
}
}