add option to reload channels via webif without saving first

Origin commit data
------------------
Commit: 0c0a1a1d5f
Author: TangoCash <eric@loxat.de>
Date: 2016-03-25 (Fri, 25 Mar 2016)


Signed-off-by: Thilo Graf <dbt@novatux.de>

Where is this documented?
Making changes to the API without any documentation is quite unpleasant.
Unfortunately, this has happened several times before.
It would be nice if someone could address this issue.

see: ./neutrino/doc/nhttpd/nhttpd_controlapi.html
This commit is contained in:
TangoCash
2016-03-25 08:46:25 +01:00
committed by Thilo Graf
parent 3f316f95c4
commit de27448e44

View File

@@ -2173,7 +2173,8 @@ void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh)
void CControlAPI::ReloadChannelsCGI(CyhookHandler *hh)
{
CServiceManager::getInstance()->SaveServices(true, true);
if(hh->ParamList["hardreload"].empty())
CServiceManager::getInstance()->SaveServices(true, true);
NeutrinoAPI->Zapit->reinitChannels();
CNeutrinoApp::getInstance()->SDTreloadChannels = false;
hh->SendOk();