mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 12:33:29 +01:00
Instead of using a path relative to phpbb_root_path the path to the task directory is directly passed to the cron manager. Dummy tasks are now in the tests directory directly. PHPBB3-9596
24 lines
360 B
PHP
24 lines
360 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @package testing
|
|
* @copyright (c) 2010 phpBB Group
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
*
|
|
*/
|
|
|
|
class phpbb_cron_task_testmod_second_dummy_task extends phpbb_cron_task_base
|
|
{
|
|
public static $was_run = 0;
|
|
|
|
public function run()
|
|
{
|
|
self::$was_run++;
|
|
}
|
|
|
|
public function should_run()
|
|
{
|
|
return true;
|
|
}
|
|
}
|