Commit 05e4804a authored by jan.koester's avatar jan.koester
Browse files

test

parent 025965bc
Loading
Loading
Loading
Loading
+0 −13
Changes for plugins/media/media.cpp: 0 added lines, 13 removed lines.
Original line number Diff line number Diff line
@@ -714,19 +714,6 @@ namespace blogi {
                json_object_array_add(jnav, jcfg);
                json_object_object_add(jerr, "nav", jnav);
                return jerr;
            } catch(libhttppp::HTTPException &e) {
                std::cerr << "media plugin: mediadb connection failed: " << e.what() << std::endl;
                json_object *jerr = json_object_new_object();
                json_object_object_add(jerr, "title", json_object_new_string(tr(_lang,"media library").c_str()));
                json_object_object_add(jerr, "message", json_object_new_string(e.what().c_str()));
                json_object_object_add(jerr, "message_type", json_object_new_string("error"));
                json_object *jnav = json_object_new_array();
                json_object *jcfg = json_object_new_object();
                json_object_object_add(jcfg, "label", json_object_new_string(tr(_lang,"Configuration").c_str()));
                json_object_object_add(jcfg, "url", json_object_new_string(Args->config->buildurl("settings/media/config").c_str()));
                json_object_array_add(jnav, jcfg);
                json_object_object_add(jerr, "nav", jnav);
                return jerr;
            }catch(...) {
                std::cerr << "media plugin: mediadb connection failed (unknown exception)" << std::endl;
                json_object *jerr = json_object_new_object();