diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-08 17:48:30 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-08 17:48:30 +0000 |
commit | 0373cb06765244d51a218633d258a74c5cbb04a6 (patch) | |
tree | fc852fa543b544a955de5cdba49071be2630d2e4 | |
parent | 2c2839c13b07ffaa5423d2affd314855e818ba11 (diff) |
Use lower-case aliases for greater portability (thanks Romain LE DISEZ)
-rw-r--r-- | core/libraries/ORM_MPTT.php | 4 | ||||
-rw-r--r-- | core/views/admin_block_platform.html.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php index 6ec4abcf..265cb8fb 100644 --- a/core/libraries/ORM_MPTT.php +++ b/core/libraries/ORM_MPTT.php @@ -286,8 +286,8 @@ class ORM_MPTT_Core extends ORM { * Lock the tree to prevent concurrent modification. */ protected function lock() { - $result = $this->db->query("SELECT GET_LOCK('{$this->table_name}', 1) AS L")->current(); - if (empty($result->L)) { + $result = $this->db->query("SELECT GET_LOCK('{$this->table_name}', 1) AS l")->current(); + if (empty($result->l)) { throw new Exception("@todo UNABLE_TO_LOCK_EXCEPTION"); } } diff --git a/core/views/admin_block_platform.html.php b/core/views/admin_block_platform.html.php index 272e20c1..1a43c715 100644 --- a/core/views/admin_block_platform.html.php +++ b/core/views/admin_block_platform.html.php @@ -10,6 +10,6 @@ <?= t("PHP: %php_version", array("php_version" => phpversion())) ?> </li> <li> - <?= t("MySQL: %mysql_version", array("mysql_version" => Database::instance()->query("SELECT version() as V")->current()->V)) ?> + <?= t("MySQL: %mysql_version", array("mysql_version" => Database::instance()->query("SELECT version() as v")->current()->v)) ?> </li> </ul> |