protected function BeforeDelete()
    {
        foreach (self::$deleteHooks as $hook)
        {
            $hook->BeforeDelete($this->item);
        }
        $logger = new Logger(BackendModule::Guard()->GetUser());
        $logger->ReportPageAction($this->item, Action::Delete());
        
        $file = Path::Combine(PHINE_PATH, 'Public/.htaccess');
        if (!File::Exists($file))
        {
            return;
        }
        $this->UpdateHtaccess($file); 
    }
protected function BeforeDelete()
    {
        foreach (self::$deleteHooks as $hook)
        {
            $hook->BeforeDelete($this->item);
        }
        $logger = new Logger(BackendModule::Guard()->GetUser());
        $logger->ReportPageAction($this->item, Action::Delete());
        
        $file = Path::Combine(PHINE_PATH, 'Public/.htaccess');
        if (!File::Exists($file))
        {
            return;
        }
        $this->UpdateHtaccess($file); 
    }
protected function BeforeDelete ( ) { foreach ( self :: $ deleteHooks as $ hook ) { $ hook -> BeforeDelete ( $ this -> item ) ; } $ logger = new Logger ( BackendModule :: Guard ( ) -> GetUser ( ) ) ; $ logger -> ReportPageAction ( $ this -> item , Action :: Delete ( ) ) ; $ file = Path :: Combine ( PHINE_PATH , 'Public/.htaccess' ) ; if ( ! File :: Exists ( $ file ) ) { return ; } $ this -> UpdateHtaccess ( $ file ) ; }
Remove htaccess page commands before page is deleted
Remove htaccess page commands before page is deleted