Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

@@ -1,19 +1,20 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* Task: Send the weekly digest emails
* Last Updated: $LastChangedDate: 2009-03-03 11:17:41 -0500 (Tue, 03 Mar 2009) $
* Last Updated: $LastChangedDate: 2010-10-20 09:03:17 -0400 (Wed, 20 Oct 2010) $
* </pre>
*
* @author $Author: matt $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Board
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Forums
* @link http://www.iinvisionpower.com
* @link http://www.invisionpower.com
* @since 27th January 2004
* @version $Rev: 4133 $
* @version $Rev: 7003 $
*/
if ( ! defined( 'IN_IPB' ) )
@@ -25,49 +26,49 @@ if ( ! defined( 'IN_IPB' ) )
class task_item
{
/**
* Parent task manager class
*
* @access protected
* @var object
*/
* Parent task manager class
*
* @var object
*/
protected $class;
/**
* This task data
*
* @access protected
* @var array
*/
* This task data
*
* @var array
*/
protected $task = array();
/**
* Prevent logging
*
* @access protected
* @var boolean
*/
* Prevent logging
*
* @var boolean
*/
protected $restrict_log = false;
/**
* Registry Object Shortcuts
*/
* Registry Object Shortcuts
*
* @var object
*/
protected $registry;
protected $DB;
protected $settings;
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**
* Constructor
*
* @access public
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
* Constructor
*
* @param object ipsRegistry reference
* @param object Parent task class
* @param array This task data
* @return void
*/
public function __construct( ipsRegistry $registry, $class, $task )
{
/* Make registry objects */
@@ -86,11 +87,10 @@ class task_item
}
/**
* Run this task
*
* @access public
* @return void
*/
* Run this task
*
* @return void
*/
public function runTask()
{
$this->registry->getClass('class_localization')->loadLanguageFile( array( 'public_global' ), 'core' );
@@ -99,14 +99,14 @@ class task_item
// Send daily digests...
//-----------------------------------------
require ( IPSLib::getAppDir( 'forums' ) . '/sources/classes/digest.php' );
$digest = new digestLibrary( $this->registry );
$digest->digest_time = 'weekly';
$digest->digest_type = 'topic';
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . '/sources/classes/digest.php', 'digestLibrary', 'forums' );
$digest = new $classToLoad( $this->registry );
$digest->digest_time = 'weekly';
$digest->digest_type = 'topic';
$digest->runDigest();
$digest->digest_time = 'weekly';
$digest->digest_type = 'forum';
$digest->digest_time = 'weekly';
$digest->digest_type = 'forum';
$digest->runDigest();
//-----------------------------------------
@@ -121,5 +121,4 @@ class task_item
$this->class->unlockTask( $this->task );
}
}