Skip to content

Commit

Permalink
Change $PHP_SELF to $_SERVER['PHP_SELF']
Browse files Browse the repository at this point in the history
  • Loading branch information
acidvertigo committed Jan 16, 2012
1 parent 788cb99 commit 773bfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions catalog/admin/includes/classes/cfg_modules.php
Expand Up @@ -14,9 +14,9 @@ class cfg_modules {
var $_modules = array();

function cfg_modules() {
global $PHP_SELF, $language;
global $language;

$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$file_extension = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '.'));
$directory = DIR_WS_MODULES . 'cfg_modules';

if ($dir = @dir($directory)) {
Expand Down

0 comments on commit 773bfbc

Please sign in to comment.