* revert the cd() function.

This commit is contained in:
wangchunsheng
2010-12-13 09:03:53 +00:00
parent 6700c9f3d9
commit 8e8e5a7e03

View File

@@ -309,6 +309,28 @@ class helper
}
return $files;
}
/**
* Change directory.
*
* @param string $path
* @static
* @access public
* @return void
*/
static function cd($path = '')
{
static $cwd = '';
if($path)
{
$cwd = getcwd();
chdir($path);
}
else
{
chdir($cwd);
}
}
}
/**