mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-07 13:31:42 -07:00
Parameter could be declared as array.
This commit is contained in:
parent
07b4d38fe9
commit
07c6fd4a75
3 changed files with 7 additions and 7 deletions
|
@ -354,7 +354,7 @@ function setbit(&$int, $bit_num, $on)
|
|||
forum auth levels, this will prevent the auth function having to do its own
|
||||
lookup
|
||||
*/
|
||||
function auth($type, $forum_id, $ug_data, $f_access = array(), $group_perm = UG_PERM_BOTH)
|
||||
function auth($type, $forum_id, $ug_data, array $f_access = array(), $group_perm = UG_PERM_BOTH)
|
||||
{
|
||||
global $lang, $bf, $datastore;
|
||||
|
||||
|
@ -2002,7 +2002,7 @@ class log_action
|
|||
}
|
||||
}
|
||||
|
||||
public function mod($type_name, $args = array())
|
||||
public function mod($type_name, array $args = array())
|
||||
{
|
||||
global $userdata;
|
||||
|
||||
|
@ -2050,7 +2050,7 @@ class log_action
|
|||
DB()->query("INSERT INTO " . BB_LOG . " $sql_args");
|
||||
}
|
||||
|
||||
public function admin($type_name, $args = array())
|
||||
public function admin($type_name, array $args = array())
|
||||
{
|
||||
$this->mod($type_name, $args);
|
||||
}
|
||||
|
@ -2287,7 +2287,7 @@ function log_sphinx_error($err_type, $err_msg, $query = '')
|
|||
}
|
||||
}
|
||||
|
||||
function get_title_match_topics($title_match_sql, $forum_ids = array())
|
||||
function get_title_match_topics($title_match_sql, array $forum_ids = array())
|
||||
{
|
||||
global $bb_cfg, $sphinx, $userdata, $title_match, $lang;
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ class upload_common
|
|||
8 => 'tiff',
|
||||
);
|
||||
|
||||
public function init($cfg = array(), $post_params = array(), $uploaded_only = true): bool
|
||||
public function init(array $cfg = array(), array $post_params = array(), $uploaded_only = true): bool
|
||||
{
|
||||
global $bb_cfg, $lang;
|
||||
|
||||
|
@ -129,7 +129,7 @@ class upload_common
|
|||
return true;
|
||||
}
|
||||
|
||||
public function store($mode = '', $params = array())
|
||||
public function store($mode = '', array $params = array())
|
||||
{
|
||||
if ($mode == 'avatar') {
|
||||
delete_avatar($params['user_id'], $params['avatar_ext_id']);
|
||||
|
|
|
@ -105,7 +105,7 @@ class user_common
|
|||
* @param array $cfg
|
||||
* @return array|bool|null
|
||||
*/
|
||||
public function session_start($cfg = array())
|
||||
public function session_start(array $cfg = array())
|
||||
{
|
||||
global $bb_cfg;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue