Commit 9350f5e6 authored by Gábor Hojtsy's avatar Gábor Hojtsy

the language column is in locales_target, noted on IRC by wwwebernet

parent 73e3d6c5
......@@ -829,7 +829,7 @@ function locale_translate_edit_form_submit($form, &$form_state) {
* Delete a language string.
*/
function locale_translate_delete($lid) {
$langcode = db_result(db_query('SELECT language FROM {locales_source} WHERE lid = %d', $lid));
$langcode = db_result(db_query('SELECT language FROM {locales_target} WHERE lid = %d', $lid));
db_query('DELETE FROM {locales_source} WHERE lid = %d', $lid);
db_query('DELETE FROM {locales_target} WHERE lid = %d', $lid);
if ($langcode) {
......
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