Need to global context to be usable

This commit is contained in:
Matt Pass
2013-05-29 08:54:45 +01:00
parent a48c9f5a77
commit 2f85371738

View File

@@ -113,7 +113,7 @@ if (startTab!=top.ICEcoder.selectedTab) {
$r = 0;
function phpGrep($q, $path, $base) {
$fp = opendir($path);
global $r, $ICEcoder, $serverType, $selectedFiles;
global $r, $ICEcoder, $serverType, $selectedFiles, $context;
if (!isset($ret)) {$ret="";};
$slash = $serverType == strpos($path,"\\")>-1 ? "\\" : "/";
while($f = readdir($fp)) {