Ignore:
Timestamp:
Sep 13, 2013, 8:12:58 PM (11 years ago)
Author:
chronos
Message:
  • Modified: If page is not found then show empty page with error message with global content as menus.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/system.php

    r581 r583  
    203203  function PageNotFound()
    204204  {
    205     return('Page '.implode('/', $this->PathItems).' not found.');
     205    return(ShowMessage('Stránka "'.implode('/', $this->PathItems).'" nenalezena.', MESSAGE_CRITICAL));
    206206  }
    207207 
     
    216216      if($Page->RawPage == false) $Output = $this->BaseView->ShowPage($Output);
    217217      echo($Output);
    218     } else echo($this->PageNotFound());
     218    } else echo($this->BaseView->ShowPage($this->PageNotFound()));
    219219  }
    220220}
Note: See TracChangeset for help on using the changeset viewer.