Commit 612a817f by pupi1985

Removed Theme/Plugin type division for metadata handling

parent bf4e4d96
......@@ -134,9 +134,9 @@ function qa_admin_click(target)
return false;
}
function qa_version_check(uri, type, version, elem)
function qa_version_check(uri, version, elem)
{
var params={uri:uri, type:type, version:version};
var params={uri:uri, version:version};
qa_ajax_post('version', params,
function (lines) {
......
......@@ -23,7 +23,6 @@
require_once QA_INCLUDE_DIR.'app/admin.php';
$uri = qa_post_text('uri');
$type = (qa_post_text('type') === 'Theme' ? 'Theme' : 'Plugin');
$version = qa_post_text('version');
$metadataUtil = new Q2A_Util_Metadata();
......
......@@ -1045,7 +1045,7 @@
$updatehtml = '(<span id="'.$elementid.'">...</span>)';
$qa_content['script_onloads'][] = array(
"qa_version_check(".qa_js($metadata['update']).", 'Theme', ".qa_js($metadata['version'], true).", ".qa_js($elementid).");"
"qa_version_check(".qa_js($metadata['update']).", ".qa_js($metadata['version'], true).", ".qa_js($elementid).");"
);
}
......
......@@ -145,7 +145,7 @@
$updatehtml = '(<span id="'.$elementid.'">...</span>)';
$qa_content['script_onloads'][] = array(
"qa_version_check(".qa_js($metadata['update']).", 'Plugin', ".qa_js($metadata['version'], true).", ".qa_js($elementid).");"
"qa_version_check(".qa_js($metadata['update']).", ".qa_js($metadata['version'], true).", ".qa_js($elementid).");"
);
}
......
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