]> git.mxchange.org Git - ctracker.git/commitdiff
Fix #3
authorRoland Haeder <roland@mxchange.org>
Tue, 11 May 2010 08:12:54 +0000 (08:12 +0000)
committerRoland Haeder <roland@mxchange.org>
Tue, 11 May 2010 08:12:54 +0000 (08:12 +0000)
libs/lib_general.php

index 18f872f8ab20dbc30da04d0897e1b47812af6045..da29d84f4f0ddd9df2cedd164f49a53f5f98795d 100644 (file)
@@ -331,7 +331,7 @@ function crackerTrackerOutputLocalized ($message) {
 // Compiles the given code
 function crackerTrackerCompileCode ($code) {
        // Find all $content[foo]
-       preg_match_all('/\$content((\[([a-zA-Z0-9-_]+)\])*)/', $code, $matches);
+       preg_match_all('/\$(content|GLOBALS)((\[([a-zA-Z0-9-_]+)\])*)/', $code, $matches);
 
        // Replace all
        foreach ($matches[0] as $key=>$match) {