Ignore:
Timestamp:
Jun 1, 2023, 1:31:28 AM (12 months ago)
Author:
chronos
Message:
  • Fixed: More class type casting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/BaseView.php

    r8 r10  
    1212    global $ReleaseTime, $Revision;
    1313
    14     $Output = '<?xml version="1.0" encoding="'.$this->System->Config['Web']['Charset'].'"?>'."\n".
     14    $Output = '<?xml version="1.0" encoding="'.Core::Cast($this->System)->Config['Web']['Charset'].'"?>'."\n".
    1515    '<!DOCTYPE html>'.
    1616    '<html>'.
    1717    '<head>'.
    1818    '<meta http-equiv="Content-Language" content="cs"/>'.
    19     '<meta http-equiv="content-type" content="text/html; charset='.$this->System->Config['Web']['Charset'].'" />'.
     19    '<meta http-equiv="content-type" content="text/html; charset='.Core::Cast($this->System)->Config['Web']['Charset'].'" />'.
    2020    '<meta name="robots" content="all" />'.
    21     '<title>'.$this->System->Config['Web']['Title'].'</title>'.
     21    '<title>'.Core::Cast($this->System)->Config['Web']['Title'].'</title>'.
    2222    '<link rel="StyleSheet" href="'.$this->System->Link('/style/basic/style.css').'" type="text/css" media="all"/>'.
    23     implode("\n", $this->System->HeadItems).
     23    implode("\n", Core::Cast($this->System)->HeadItems).
    2424    '</head><body>';
    2525    $Output .= $this->ShowHeader();
    2626    $Output .= $Content;
    2727    $Output .= '<br/><div style="text-align: center; font-size: small;">Verze: '.$Revision.' ('.HumanDate($ReleaseTime).')'.
    28       ' &nbsp; <a href="https://svn.zdechov.net/trac/open2ride/browser/trunk">Zdrojový kód</a> &nbsp; '.
    29       '<a href="https://svn.zdechov.net/trac/open2ride/log/trunk?verbose=on">Historie změn</a></div>';
     28      ' &nbsp; <a href="https://app.zdechov.net/open2ride/browser/trunk">Zdrojový kód</a> &nbsp; '.
     29      '<a href="https://app.zdechov.net/open2ride/log/trunk?verbose=on">Historie změn</a></div>';
    3030    $Output .= '</body></html>';
    3131    echo($Output);
     
    3737    $Output .= '<div class="MenuItem">';
    3838    $Bar = '';
    39     foreach ($this->System->Bars['TopLeft'] as $BarItem)
     39    foreach (Core::Cast($this->System)->Bars['TopLeft'] as $BarItem)
    4040      $Bar .= call_user_func($BarItem);
    41       if (trim($Bar) != '') $Output .= $Bar;
     41    if (trim($Bar) != '') $Output .= $Bar;
    4242      else $Output .= '&nbsp;';
    4343    $Output .= '</div><div class="MenuItem2">';
    4444    $Bar = '';
    45     foreach ($this->System->Bars['Top'] as $BarItem)
     45    foreach (Core::Cast($this->System)->Bars['Top'] as $BarItem)
    4646      $Bar .= call_user_func($BarItem);
    47       if (trim($Bar) != '') $Output .= $Bar;
     47    if (trim($Bar) != '') $Output .= $Bar;
    4848      else $Output .= '&nbsp;';
    4949    $Output .= '</div></div>';
     
    5353  function GetOutput($Page)
    5454  {
    55     $Page->OnSystemMessage = array($this->System->BaseView, 'SystemMessage');
     55    $Page->OnSystemMessage = array(Core::Cast($this->System)->BaseView, 'SystemMessage');
    5656    $Output = $this->ShowPage($Page->Show());
    5757    return $Output;
Note: See TracChangeset for help on using the changeset viewer.