Commit cf7cb6b6 authored by Dries's avatar Dries
Browse files

- Patch #635094 by plach: switching from zxx to und as it is semantically more correct.

parent ddddbb89
......@@ -181,9 +181,9 @@
/**
* The language code used when no language is explicitly assigned.
*
* Defined by ISO639-2 for "No linguistic content / Not applicable".
* Defined by ISO639-2 for "Undetermined".
*/
define('LANGUAGE_NONE', 'zxx');
define('LANGUAGE_NONE', 'und');
/**
* The type of language used to define the content language.
......
......@@ -555,9 +555,10 @@ class MenuNodeTestCase extends DrupalWebTestCase {
// Create a node.
$node_title = $this->randomName();
$language = LANGUAGE_NONE;
$edit = array(
'title[zxx][0][value]' => $node_title,
'body[zxx][0][value]' => $this->randomString(),
"title[$language][0][value]" => $node_title,
"body[$language][0][value]" => $this->randomString(),
);
$this->drupalPost('node/add/page', $edit, t('Save'));
$node = $this->drupalGetNodeByTitle($node_title);
......
......@@ -11,7 +11,7 @@
* Implements hook_node_insert().
*/
function node_test_exception_node_insert($node) {
if ($node->title['zxx'][0]['value'] == 'testing_transaction_exception') {
if ($node->title[LANGUAGE_NONE][0]['value'] == 'testing_transaction_exception') {
throw new Exception('Test exception for rollback.');
}
}
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