Ignore:
Timestamp:
Feb 23, 2015, 12:03:22 AM (10 years ago)
Author:
chronos
Message:
  • Fixed: Regeneration of team level images from admin page.
  • Added: Show link to client version from import table and translation list table.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Import/Import.php

    r816 r817  
    5454     // $Values .= ', "'.$Value[$GroupItem['Column']].'"';
    5555    }
    56    // echo $Values;
    5756    $Columns = substr($Columns, 1);
    5857    $Where = ' (`'.$this->Group['PrimaryKeyItem'].'` = "'.$Value[$this->Group['PrimaryKeyItem']].'")  AND (`Language`=0) ' ;
    59     //print_r($Value);
    6058
    6159    $DbResultMiddle = $this->System->Database->query('SELECT `VersionEnd`,`VersionStart`, `ID`, `Entry`, '.$Columns.' FROM `'.$this->Group['TablePrefix'].'` WHERE '.$Where.' AND `VersionStart` <= '.$this->Version['BuildNumber'].' AND `VersionEnd` >= '.$this->Version['BuildNumber'].' ORDER BY `VersionEnd` DESC LIMIT 1');
    6260    $DbResultBefore = $this->System->Database->query('SELECT `VersionEnd`,`VersionStart`, `ID`, `Entry`, '.$Columns.' FROM `'.$this->Group['TablePrefix'].'` WHERE '.$Where.' AND `VersionEnd` <= '.$this->Version['BuildNumber'].' ORDER BY `VersionEnd` DESC LIMIT 1');
    6361    $DbResultAfter  = $this->System->Database->query('SELECT `VersionEnd`,`VersionStart`, `ID`, `Entry`, '.$Columns.' FROM `'.$this->Group['TablePrefix'].'` WHERE '.$Where.' AND `VersionStart` >= '.$this->Version['BuildNumber'].' ORDER BY `VersionStart` LIMIT 1');
    64     //echo('SELECT `VersionEnd`, `ID`, `Entry`, '.$Columns.' FROM `'.$this->Group['TablePrefix'].'` WHERE '.$Where.' AND (`Language`=0) ORDER BY `VersionStart` DESC LIMIT 1');
     62
    6563    if(($DbResultMiddle->num_rows > 0) or ($DbResultBefore->num_rows > 0) or ($DbResultAfter->num_rows > 0))
    6664    {
     
    223221              $Line = substr($Line, strpos($Line, ';') + 1);
    224222              $Value['Comment'] = addslashes(stripslashes(substr($Line, 3))); // Skip " --"
    225               //print_r($Value);
    226223
    227224              $this->InsertItem($Value);
     
    260257        while($DbRow = $DbResult->fetch_assoc())
    261258        {
    262           echo '`';
     259          echo('`');
    263260          $this->System->Database->query('UPDATE `'.$Group['TablePrefix'].'` SET `VersionEnd` = '.$DbRow['VersionEnd_orig'].', `VersionStart` = '.$DbRow['VersionStart_orig'].' WHERE `ID` = '.$DbRow['ID']);
    264261          $Output .= '. ';
Note: See TracChangeset for help on using the changeset viewer.