system/setting_helpers.cpp: use CONFIGDIR to remove xml/conf files

Origin commit data
------------------
Commit: 4b10e2e7c9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-01-29 (Tue, 29 Jan 2013)
This commit is contained in:
[CST] Focus
2013-01-29 14:48:00 +04:00
parent 946d0f1eaa
commit bd43e4ecc8

View File

@@ -467,7 +467,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
return true;
if(delete_all) {
my_system("/bin/sh", "-c", "rm -f /var/tuxbox/config/zapit/*.conf");
my_system("/bin/sh", "-c", "rm -f " CONFIGDIR "/zapit/*.conf");
CServiceManager::getInstance()->SatelliteList().clear();
CZapit::getInstance()->LoadSettings();
CZapit::getInstance()->GetConfig(zapitCfg);
@@ -487,7 +487,7 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
CFrameBuffer::getInstance()->Clear();
}
if(delete_chan) {
my_system("/bin/sh", "-c", "rm -f /var/tuxbox/config/zapit/*.xml");
my_system("/bin/sh", "-c", "rm -f " CONFIGDIR "/zapit/*.xml");
g_Zapit->reinitChannels();
}
return ret;