Changeset 28 for trunk


Ignore:
Timestamp:
Sep 13, 2019, 12:20:47 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Loading all items at once was fixed on the server and returned back.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r27 r28  
    9999      if ($Query != null) $URL .= '&query='.$Query;
    100100      if ($StartNumber != null) $URL .= '&startNumber='.$StartNumber;
    101       //echo($URL.'<br/>');
    102101      $Content = file_get_contents($URL);
    103102      $JSON = json_decode($Content, true);
     
    279278  {
    280279    $Time = time();
    281     $Items = $this->QueryRunnersAll('teams', 520);
    282     $Items = array_merge($Items, $this->QueryRunnersAll('families'));
    283     $Items = array_merge($Items, $this->QueryRunnersAll(''));
     280    $Items = $this->QueryRunnersAll('all');
    284281    $ItemsWithoutProgress = array();
    285282    foreach ($Items as $Item)
     
    295292      $Import = $DbResult->fetch_assoc();
    296293    } else $Import = array('Hash' => '');
    297     //if ($Import['Hash'] != $Hash)
     294    if ($Import['Hash'] != $Hash)
    298295    {
    299296      $this->Sync($Items, $Time);
     
    805802    global $Config;
    806803
     804    $Lang = 'en';
    807805    $Output = '<?xml version="1.0" encoding="'.$this->Config['Encoding'].'"?>'."\n".
    808806      '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'.
    809       '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">'.
     807      '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$Lang.'" lang="'.$Lang.'">'.
    810808      '<head>'.
    811809      '<link rel="stylesheet" href="'.$this->Link('/style.css').'" type="text/css" media="all" />'.
Note: See TracChangeset for help on using the changeset viewer.