Commit a3964999 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

anatole: update anatole API calls after API break

parent e72ceaca
......@@ -425,7 +425,7 @@ wp_anatole_policy_activate (WpPlugin * plugin)
/* initialize the lua engine */
self->engine = anatole_engine_new ("wp");
wp_anatole_policy_load_lua_functions (self);
if (!anatole_engine_load_script (self->engine, script_path, &error)) {
if (!anatole_engine_load_script_from_path (self->engine, script_path, &error)) {
wp_warning_object (self, "script load error: %s", error->message);
g_clear_object (&self->engine);
return;
......
......@@ -61,7 +61,7 @@ wp_anatole_config_parser_add_file (WpConfigParser * parser, const gchar * file)
WpAnatoleConfigParser * self = WP_ANATOLE_CONFIG_PARSER (parser);
g_autoptr (GError) error = NULL;
if (!anatole_engine_load_script (self->engine, file, &error)) {
if (!anatole_engine_load_script_from_path (self->engine, file, &error)) {
wp_warning_object (self, "failed to load '%s': %s", file, error->message);
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment