Changeset 718 for trunk/Modules/Export


Ignore:
Timestamp:
Jan 5, 2014, 6:45:02 PM (11 years ago)
Author:
maron
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/cmdmpqexport.php

    r694 r718  
    33ini_set('memory_limit', '100M');
    44
    5 $_SERVER['REMOTE_ADDR'] = 'localhost';
    6 $_SERVER['REQUEST_URI'] = '127.0.0.1';
     5$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
     6$_SERVER['REQUEST_URI'] = __FILE__;
    77
    88include_once(dirname(__FILE__).'/../../includes/global.php');
     
    1616$PageExport = new PageExport($System);
    1717
    18 $_SERVER['REQUEST_URI'] = __FILE__;
     18
    1919
    2020$Output = '';
     
    8888
    8989if(array_key_exists('needgeneration', $_GET)) {
    90  foreach ($System->Config['Web']['RecommendedExport'] as $ExportId) {
     90        $DbRows = $System->Database->query('SELECT `ClientVersion`.`Version` as Version, `Export`.`Id`,`Export`.`ClientVersion`,`Export`.`OutputType`,`Export`.`Title`,`Export`.`Description` FROM `Export` JOIN `ClientVersion` as `ClientVersion` ON `ClientVersion`.`Id`=`Export`.`ClientVersion` WHERE `Featured`=1 ORDER BY `ClientVersion`.`BuildNumber` DESC');
     91  while ($DbExport = $DbRows->fetch_assoc()) {
    9192  $Export = new Export($System);
    92   $Export->Id = $ExportId;
     93  $Export->Id = $DbExport['Id'];
    9394  $Output .= $Export->Init();                   
    9495  if ($Export->NeedGeneration()) {
Note: See TracChangeset for help on using the changeset viewer.