X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FFile.php;h=1a29ea5107e537dec350188c4b7b323e523b2e76;hb=be0c10e8f6f9c60b1cb840cda9ac6f42c8289738;hp=d4abbfddeef3f5f45c26621fce6414c16e75827f;hpb=882ce56cf464572fa5ff314115e29a81939490c7;p=quix0rs-gnu-social.git 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;