aboutsummaryrefslogtreecommitdiff
path: root/classes/File.php
diff options
context:
space:
mode:
authorMikael Nordfeldth <mmn@hethane.se>2015-06-06 19:35:10 +0200
committerMikael Nordfeldth <mmn@hethane.se>2015-06-06 19:35:10 +0200
commitdaaafd86e2dfea8e9c3e4f0c41f7cb77c926c104 (patch)
treedbaf9a1f984b920f240c1625925409262161b3d7 /classes/File.php
parent9e52b6f2d1b2c0a25ef3014a80a9224b707da46c (diff)
downloadgnu-social-daaafd86e2dfea8e9c3e4f0c41f7cb77c926c104.tar
gnu-social-daaafd86e2dfea8e9c3e4f0c41f7cb77c926c104.zip
DB_DataObject recommends using ->tableName()
Diffstat (limited to 'classes/File.php')
-rw-r--r--classes/File.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/File.php b/classes/File.php
index d4abbfddee..1a29ea5107 100644
--- a/classes/File.php
+++ b/classes/File.php
@@ -488,13 +488,13 @@ class File extends Managed_DataObject
throw new ServerException('URL already exists in DB');
}
$sql = 'UPDATE %1$s SET urlhash=%2$s, url=%3$s WHERE urlhash=%4$s;';
- $result = $this->query(sprintf($sql, $this->__table,
+ $result = $this->query(sprintf($sql, $this->tableName(),
$this->_quote((string)self::hashurl($url)),
$this->_quote((string)$url),
$this->_quote((string)$this->urlhash)));
if ($result === false) {
common_log_db_error($this, 'UPDATE', __FILE__);
- throw new ServerException("Could not UPDATE {$this->__table}.url");
+ throw new ServerException("Could not UPDATE {$this->tableName()}.url");
}
return $result;