diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-04-26 01:41:50 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-04-26 01:41:50 +0200 |
commit | 9eedd45aac7670c1fdd4076755b1f807d2587d3d (patch) | |
tree | 0f2381af63c13d841ca27016bde685da30e6ba7d /phpBB/includes/functions_compatibility.php | |
parent | 0553d7980853c49e5421c350557e3961d6e9b2bc (diff) | |
parent | af827bf2b4d35c7a55ee5888448376555ed7929c (diff) | |
download | forums-9eedd45aac7670c1fdd4076755b1f807d2587d3d.tar forums-9eedd45aac7670c1fdd4076755b1f807d2587d3d.tar.gz forums-9eedd45aac7670c1fdd4076755b1f807d2587d3d.tar.bz2 forums-9eedd45aac7670c1fdd4076755b1f807d2587d3d.tar.xz forums-9eedd45aac7670c1fdd4076755b1f807d2587d3d.zip |
Merge pull request #2345 from Nicofuma/ticket/12199
[ticket/12199] Move deprecated functions to functions_compatibility.php
* Nicofuma/ticket/12199:
[ticket/12199] Move deprecated functions to functions_compatibility.php
Diffstat (limited to 'phpBB/includes/functions_compatibility.php')
-rw-r--r-- | phpBB/includes/functions_compatibility.php | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/phpBB/includes/functions_compatibility.php b/phpBB/includes/functions_compatibility.php index 164dd4cb99..c2db53f86c 100644 --- a/phpBB/includes/functions_compatibility.php +++ b/phpBB/includes/functions_compatibility.php @@ -116,3 +116,49 @@ function phpbb_clean_path($path) return $phpbb_path_helper->clean_path($path); } + +/** +* Pick a timezone +* +* @param string $default A timezone to select +* @param boolean $truncate Shall we truncate the options text +* +* @return string Returns the options for timezone selector only +* +* @deprecated +*/ +function tz_select($default = '', $truncate = false) +{ + global $user; + + $timezone_select = phpbb_timezone_select($user, $default, $truncate); + return $timezone_select['tz_select']; +} + +/** +* Cache moderators. Called whenever permissions are changed +* via admin_permissions. Changes of usernames and group names +* must be carried through for the moderators table. +* +* @deprecated 3.1 +* @return null +*/ +function cache_moderators() +{ + global $db, $cache, $auth; + return phpbb_cache_moderators($db, $cache, $auth); +} + +/** +* Removes moderators and administrators from foe lists. +* +* @deprecated 3.1 +* @param array|bool $group_id If an array, remove all members of this group from foe lists, or false to ignore +* @param array|bool $user_id If an array, remove this user from foe lists, or false to ignore +* @return null +*/ +function update_foes($group_id = false, $user_id = false) +{ + global $db, $auth; + return phpbb_update_foes($db, $auth, $group_id, $user_id); +} |