applications/dashboard/controllers/class.logcontroller.php
public function Restore($LogIDs) {
      $this->Permission('Garden.Moderation.Manage');

      // Grab the logs.
      $Logs = $this->LogModel->GetIDs($LogIDs);
      try {
         foreach ($Logs as $Log) {
            $this->LogModel->Restore($Log);
         }
      } catch (Exception $Ex) {
         $this->Form->AddError($Ex->getMessage());
      }
      $this->LogModel->Recalculate();
      $this->Render('Blank', 'Utility');
   }
public function Restore($LogIDs) {
      $this->Permission('Garden.Moderation.Manage');

      // Grab the logs.
      $Logs = $this->LogModel->GetIDs($LogIDs);
      try {
         foreach ($Logs as $Log) {
            $this->LogModel->Restore($Log);
         }
      } catch (Exception $Ex) {
         $this->Form->AddError($Ex->getMessage());
      }
      $this->LogModel->Recalculate();
      $this->Render('Blank', 'Utility');
   }
public function Restore ( $ LogIDs ) { $ this -> Permission ( 'Garden.Moderation.Manage' ) ; // Grab the logs. $ Logs = $ this -> LogModel -> GetIDs ( $ LogIDs ) ; try { foreach ( $ Logs as $ Log ) { $ this -> LogModel -> Restore ( $ Log ) ; } } catch ( Exception $ Ex ) { $ this -> Form -> AddError ( $ Ex -> getMessage ( ) ) ; } $ this -> LogModel -> Recalculate ( ) ; $ this -> Render ( 'Blank' , 'Utility' ) ; }
Restore logs.

@since 2.0.?
@access public

@param array $LogIDs List of log IDs.
Restore logs .