Permalink
Browse files

Removed deprecated code

  • Loading branch information...
1 parent dd29f89 commit 924b3c4b4874a09f9780f8a5ca9ed70ba248a41c @acidvertigo acidvertigo committed Aug 15, 2011
Showing with 4 additions and 7 deletions.
  1. +4 −7 catalog/admin/includes/functions/general.php
@@ -117,8 +117,7 @@ function tep_get_path($current_category_id = '') {
}
function tep_get_all_get_params($exclude_array = '') {
- global $_GET;
-
+
if ($exclude_array == '') $exclude_array = array();
$get_url = '';
@@ -334,9 +333,8 @@ function tep_not_null($value) {
}
function tep_browser_detect($component) {
- global $HTTP_USER_AGENT;
-
- return stristr($HTTP_USER_AGENT, $component);
+
+ return stristr($_SERVER['HTTP_USER_AGENT'], $component);
}
function tep_tax_classes_pull_down($parameters, $selected = '') {
@@ -821,8 +819,7 @@ function tep_mod_select_option($select_array, $key_name, $key_value) {
////
// Retreive server information
function tep_get_system_information() {
- global $_SERVER;
-
+
$db_query = tep_db_query("select now() as datetime");
$db = tep_db_fetch_array($db_query);

0 comments on commit 924b3c4

Please sign in to comment.