* code review
This commit is contained in:
@@ -787,9 +787,9 @@ EOT;
|
||||
*/
|
||||
public function debug($filePath, $action)
|
||||
{
|
||||
$filePath = helper::safe64Decode($filePath);
|
||||
$fileBasePath = realpath(dirname($filePath));
|
||||
if(strpos($fileBasePath, $this->app->appRoot . 'module') !== 0 && strpos($fileBasePath, $this->app->appRoot . 'extension') !== 0) return;
|
||||
$filePath = helper::safe64Decode($filePath);
|
||||
$fileDirPath = realpath(dirname($filePath));
|
||||
if(strpos($fileDirPath, $this->app->getModuleRoot()) !== 0 and strpos($fileDirPath, $this->app->getExtensionRoot()) !== 0) return;
|
||||
if($action == 'extendModel')
|
||||
{
|
||||
$method = $this->api->getMethod($filePath, 'Model');
|
||||
|
||||
Reference in New Issue
Block a user