Per fixme on r77597, change to $this->addQuotes() instead of hardcoded quote type
authorSam Reed <reedy@users.mediawiki.org>
Mon, 7 Feb 2011 23:21:53 +0000 (23:21 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 7 Feb 2011 23:21:53 +0000 (23:21 +0000)
includes/db/Database.php

index 4337ced..66a6d84 100644 (file)
@@ -1625,7 +1625,7 @@ abstract class DatabaseBase implements DatabaseType {
                if ( !$alias || $alias == $name ) {
                        return $this->tableName( $name );
                } else {
-                       return $this->tableName( $name ) . ' `' . $alias . '`';
+                       return $this->tableName( $name ) . $this->addQuotes( $alias );
                }
        }