1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40: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.
* @return integer Number of deleted messages.
*/
public static function prune($lifetime = CHAT_ARCHIVETIME) {
public static function prune($lifetime = CHAT_LOG_ARCHIVETIME) {
$baseClass = self::$baseClass;
$sql = "SELECT
".$baseClass::getDatabaseTableIndexName()."