1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[feature/dic] Rename {phpEx => php_ext} for consistency

PHPBB3-10739
This commit is contained in:
Igor Wiedler
2012-07-26 16:15:56 +02:00
parent cec4c94f2e
commit 5cdcaaa531
8 changed files with 34 additions and 34 deletions

View File

@@ -26,12 +26,12 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_prune_all_forums extends phpbb_cron_task_base
{
private $phpbb_root_path, $phpEx, $config, $db;
private $phpbb_root_path, $php_ext, $config, $db;
public function __construct($phpbb_root_path, $phpEx, phpbb_config $config, dbal $db)
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config, dbal $db)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;
$this->php_ext = $php_ext;
$this->config = $config;
$this->db = $db;
}
@@ -45,7 +45,7 @@ class phpbb_cron_task_core_prune_all_forums extends phpbb_cron_task_base
{
if (!function_exists('auto_prune'))
{
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->phpEx);
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->php_ext);
}
$sql = 'SELECT forum_id, prune_next, enable_prune, prune_days, prune_viewed, forum_flags, prune_freq

View File

@@ -26,13 +26,13 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_prune_forum extends phpbb_cron_task_base implements phpbb_cron_task_parametrized
{
private $phpbb_root_path, $phpEx, $config, $db;
private $phpbb_root_path, $php_ext, $config, $db;
private $forum_data;
public function __construct($phpbb_root_path, $phpEx, phpbb_config $config, dbal $db)
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config, dbal $db)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;
$this->php_ext = $php_ext;
$this->config = $config;
$this->db = $db;
}
@@ -56,7 +56,7 @@ class phpbb_cron_task_core_prune_forum extends phpbb_cron_task_base implements p
{
if (!function_exists('auto_prune'))
{
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->phpEx);
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->php_ext);
}
if ($this->forum_data['prune_days'])

View File

@@ -22,12 +22,12 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_queue extends phpbb_cron_task_base
{
private $phpbb_root_path, $phpEx, $config;
private $phpbb_root_path, $php_ext, $config;
public function __construct($phpbb_root_path, $phpEx, phpbb_config $config)
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;
$this->php_ext = $php_ext;
$this->config = $config;
}
@@ -40,7 +40,7 @@ class phpbb_cron_task_core_queue extends phpbb_cron_task_base
{
if (!class_exists('queue'))
{
include($this->phpbb_root_path . 'includes/functions_messenger.' . $this->phpEx);
include($this->phpbb_root_path . 'includes/functions_messenger.' . $this->php_ext);
}
$queue = new queue();
$queue->process();
@@ -55,7 +55,7 @@ class phpbb_cron_task_core_queue extends phpbb_cron_task_base
*/
public function is_runnable()
{
return file_exists($this->phpbb_root_path . 'cache/queue.' . $this->phpEx);
return file_exists($this->phpbb_root_path . 'cache/queue.' . $this->php_ext);
}
/**

View File

@@ -22,12 +22,12 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_tidy_database extends phpbb_cron_task_base
{
private $phpbb_root_path, $phpEx, $config;
private $phpbb_root_path, $php_ext, $config;
public function __construct($phpbb_root_path, $phpEx, phpbb_config $config)
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;
$this->php_ext = $php_ext;
$this->config = $config;
}
@@ -40,7 +40,7 @@ class phpbb_cron_task_core_tidy_database extends phpbb_cron_task_base
{
if (!function_exists('tidy_database'))
{
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->phpEx);
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->php_ext);
}
tidy_database();
}

View File

@@ -24,12 +24,12 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_tidy_search extends phpbb_cron_task_base
{
private $phpbb_root_path, $phpEx, $config;
private $phpbb_root_path, $php_ext, $config;
public function __construct($phpbb_root_path, $phpEx, phpbb_config $config)
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;
$this->php_ext = $php_ext;
$this->config = $config;
}
@@ -45,7 +45,7 @@ class phpbb_cron_task_core_tidy_search extends phpbb_cron_task_base
if (!class_exists($search_type))
{
include($this->phpbb_root_path . "includes/search/$search_type." . $this->phpEx);
include($this->phpbb_root_path . "includes/search/$search_type." . $this->php_ext);
}
// We do some additional checks in the module to ensure it can actually be utilised
@@ -72,7 +72,7 @@ class phpbb_cron_task_core_tidy_search extends phpbb_cron_task_base
// Select the search method
$search_type = basename($this->config['search_type']);
return file_exists($this->phpbb_root_path . 'includes/search/' . $search_type . '.' . $this->phpEx);
return file_exists($this->phpbb_root_path . 'includes/search/' . $search_type . '.' . $this->php_ext);
}
/**

View File

@@ -24,12 +24,12 @@ if (!defined('IN_PHPBB'))
*/
class phpbb_cron_task_core_tidy_warnings extends phpbb_cron_task_base
{
private $phpbb_root_path, $phpEx, $config;
private $phpbb_root_path, $php_ext, $config;
public function __construct($phpbb_root_path, $phpEx, phpbb_config $config)
public function __construct($phpbb_root_path, $php_ext, phpbb_config $config)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;
$this->php_ext = $php_ext;
$this->config = $config;
}
@@ -42,7 +42,7 @@ class phpbb_cron_task_core_tidy_warnings extends phpbb_cron_task_base
{
if (!function_exists('tidy_warnings'))
{
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->phpEx);
include($this->phpbb_root_path . 'includes/functions_admin.' . $this->php_ext);
}
tidy_warnings();
}