Skip to content
Browse files

Changes $PHP_SELF deprecated to $_SERVER['PHP_SELF']

  • Loading branch information...
1 parent 19b4114 commit dcf3e6ad5570236e48f6944d9ce2bb421c2a5323 @acidvertigo acidvertigo committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 catalog/includes/classes/action_recorder.php
View
10 catalog/includes/classes/action_recorder.php
@@ -16,16 +16,16 @@ class actionRecorder {
var $_user_name;
function actionRecorder($module, $user_id = null, $user_name = null) {
- global $language, $PHP_SELF;
+ global $language;
$module = tep_sanitize_string(str_replace(' ', '', $module));
if (defined('MODULE_ACTION_RECORDER_INSTALLED') && tep_not_null(MODULE_ACTION_RECORDER_INSTALLED)) {
- if (tep_not_null($module) && in_array($module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), explode(';', MODULE_ACTION_RECORDER_INSTALLED))) {
+ if (tep_not_null($module) && in_array($module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)), explode(';', MODULE_ACTION_RECORDER_INSTALLED))) {
if (!class_exists($module)) {
- if (file_exists(DIR_WS_MODULES . 'action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)))) {
- include(DIR_WS_LANGUAGES . $language . '/modules/action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
- include(DIR_WS_MODULES . 'action_recorder/' . $module . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
+ if (file_exists(DIR_WS_MODULES . 'action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)))) {
+ include(DIR_WS_LANGUAGES . $language . '/modules/action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)));
+ include(DIR_WS_MODULES . 'action_recorder/' . $module . '.' . substr($_SERVER['PHP_SELF'], (strrpos($_SERVER['PHP_SELF'], '.')+1)));
} else {
return false;
}

0 comments on commit dcf3e6a

Please sign in to comment.
Something went wrong with that request. Please try again.