1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fixed usage of constant

This commit is contained in:
Tim Düsterhus 2012-04-15 17:32:25 +02:00
parent 66bfb5029b
commit 306f1c38b7

View File

@ -23,7 +23,7 @@ class ChatMessageEditor extends \wcf\data\DatabaseObjectEditor {
* @param integer $lifetime Delete messages older that this time. * @param integer $lifetime Delete messages older that this time.
* @return integer Number of deleted messages. * @return integer Number of deleted messages.
*/ */
public static function prune($lifetime = CHAT_ARCHIVETIME) { public static function prune($lifetime = CHAT_LOG_ARCHIVETIME) {
$baseClass = self::$baseClass; $baseClass = self::$baseClass;
$sql = "SELECT $sql = "SELECT
".$baseClass::getDatabaseTableIndexName()." ".$baseClass::getDatabaseTableIndexName()."