Don't consider scripts using GM_ functions as broken

There are cases where scripts check for the existence of such
functions and fall back to standard functions.
This commit is contained in:
Christian Dywan 2011-04-04 01:50:53 +02:00
parent 728ed8570f
commit b299608352

View file

@ -1245,12 +1245,6 @@ addons_update_elements (MidoriExtension* extension,
if (!addons_get_element_content (fullpath, kind, if (!addons_get_element_content (fullpath, kind,
&(element->script_content))) &(element->script_content)))
element->broken = TRUE; element->broken = TRUE;
if (element->script_content)
{
gchar* use_gm = g_strrstr_len (element->script_content , -1, "GM_");
if (use_gm && *use_gm)
element->broken = TRUE;
}
if (g_key_file_get_integer (keyfile, "scripts", fullpath, NULL) & 1) if (g_key_file_get_integer (keyfile, "scripts", fullpath, NULL) & 1)
element->enabled = FALSE; element->enabled = FALSE;