Ignore:
Timestamp:
Aug 15, 2013, 11:17:26 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: System variable as parameter to constructors of descendents of Module class.
  • Removed: End PHP mark "?>" from all files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/Model/Backup.php

    r80 r93  
    88  var $Task;
    99 
    10   function __construct($Database, $Id)
     10  function __construct($System, $Id)
    1111  {
    12     $this->Database = $Database;
    13     $this->Task = new Task($Database);
     12        parent::__construct($System);
     13    $this->Task = new Task($System);
    1414    $this->Id = $Id;
    1515    $DbResult = $this->Database->query('SELECT * FROM `Backup` WHERE `Id`='.$Id);
     
    4242  function Create($ServerId)
    4343  {
    44     $Server = new Server($this->Database, $ServerId);
     44    $Server = new Server($this->System, $ServerId);
    4545    $Description = 'MaNGOS r'.$Server->Server['Database']['Emulator']['Revision'].', UDB r'.$Server->Server['Database']['Revision'].', SD2 r'.$Server->Server['Database']['ScriptDev2Revision'].', Client '.$Server->Server['Database']['Emulator']['Client']['Version'];
    4646    $this->Database->insert('Backup', array('Server' => $ServerId, 'Time' => 'NOW()', 'Description' => $Description, 'Lock' => 1, 'Database' => $Server->Server['Database']['Id']));
     
    7373  }
    7474}
    75 
    76 ?>
Note: See TracChangeset for help on using the changeset viewer.