virtual void Verify()
{
+ std::pair<DPL::String, DPL::String> boxLabel;
if (m_label.empty()) {
- ThrowMsg(Exception::ParseError,
- "box-label element cannot be empty - ignoring");
+ LogWarning("box-label element is empty");
+ boxLabel.first = DPL::FromUTF8String("");
+ boxLabel.second = DPL::FromUTF8String("");
+ m_data.m_label.push_back(boxLabel);
+ }
+ else {
+ boxLabel.first = m_lang;
+ boxLabel.second = m_label;
+ m_data.m_label.push_back(boxLabel);
}
- std::pair<DPL::String, DPL::String> boxLabel;
- boxLabel.first = m_lang;
- boxLabel.second = m_label;
- m_data.m_label.push_back(boxLabel);
}
BoxLabelParser(ConfigParserData::LiveboxInfo& data) :