From ef1b080c773ee4908c45130e3a6ef06467bc9577 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 15 Sep 2008 22:08:36 -0400 Subject: [PATCH] Updating functions_datastore.php --- includes/functions_datastore.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/includes/functions_datastore.php b/includes/functions_datastore.php index 4d6a7f3..5b42042 100755 --- a/includes/functions_datastore.php +++ b/includes/functions_datastore.php @@ -22,8 +22,6 @@ // ###################### Start build_languages ###################### function build_languages() { - global $bugsys; - $languages = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "language"); foreach ($languages as $language) { @@ -42,8 +40,6 @@ function build_languages() // ####################### Start build_settings ###################### function build_settings() { - global $bugsys; - $settings = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "setting"); foreach ($settings as $setting) { @@ -62,8 +58,6 @@ function build_settings() // ###################### Start build_usergroups ##################### function build_usergroups() { - global $bugsys; - $usergroups = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "usergroup"); foreach ($usergroups as $usergroup) { @@ -82,8 +76,6 @@ function build_usergroups() // ####################### Start build_statuses ###################### function build_statuses() { - global $bugsys; - $statuses = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "status ORDER BY displayorder ASC"); foreach ($statuses as $status) { @@ -102,8 +94,6 @@ function build_statuses() // ###################### Start build_severities ##################### function build_severities() { - global $bugsys; - $severities = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "severity ORDER BY displayorder ASC"); foreach ($severities as $severity) { @@ -122,8 +112,6 @@ function build_severities() // ###################### Start build_priorities ##################### function build_priorities() { - global $bugsys; - $priorities = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "priority ORDER BY displayorder ASC"); foreach ($priorities as $priority) { @@ -142,8 +130,6 @@ function build_priorities() // ###################### Start build_assignedto ##################### function build_assignedto() { - global $bugsys; - // determine the groups that are assignable $ids = $exprs = array(); foreach (bugdar::$datastore['usergroup'] AS $id => $group) @@ -179,8 +165,6 @@ function build_assignedto() // ##################### Start build_resolutions ##################### function build_resolutions() { - global $bugsys; - $resolutions = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "resolution ORDER BY displayorder ASC"); foreach ($resolutions as $resolution) { @@ -199,8 +183,6 @@ function build_resolutions() // ####################### Start build_versions ###################### function build_versions() { - global $bugsys; - $versions = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "version ORDER BY displayorder ASC"); foreach ($versions as $version) { @@ -219,8 +201,6 @@ function build_versions() // ####################### Start build_products ###################### function build_products() { - global $bugsys; - $products = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "product ORDER BY displayorder ASC"); foreach ($products as $product) { @@ -249,8 +229,6 @@ function build_products() // ##################### Start build_permissions ##################### function build_permissions() { - global $bugsys; - $permissions = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "permission ORDER BY usergroupid, productid"); foreach ($permissions as $permission) { @@ -269,8 +247,6 @@ function build_permissions() // ##################### Start build_automations #################### function build_automations() { - global $bugsys; - $automations = BSApp::$db->query("SELECT * FROM " . TABLE_PREFIX . "automation ORDER BY name ASC"); foreach ($automations as $automation) { @@ -289,8 +265,6 @@ function build_automations() // ###################### Start build_user_help ###################### function build_user_help() { - global $bugsys; - // custom field descriptions $descriptions = BSApp::$db->query("SELECT fieldid, name, description FROM " . TABLE_PREFIX . "bugfield"); foreach ($descriptions as $field) -- 2.43.5