Ignore:
Timestamp:
May 31, 2014, 9:35:15 AM (10 years ago)
Author:
chronos
Message:
  • Fixed: "Page not found" was not handled correctly. It was handled incorrectly by Redirection module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/system.php

    r811 r812  
    247247      if($Page->RawPage == false) $Output = $this->BaseView->ShowPage($Output);
    248248    } else {
     249      $Output2 = '';
    249250        if((count($this->OnPageNotFound) == 2)
    250251  and method_exists($this->OnPageNotFound[0], $this->OnPageNotFound[1]))
    251           $Output = $this->BaseView->ShowPage(call_user_func_array($this->OnPageNotFound, array()));
    252                 else
    253                 {
     252          $Output2 = call_user_func_array($this->OnPageNotFound, array());
     253     if($Output2 != '') $Output .= $this->BaseView->ShowPage($Output2);
     254                else {
    254255                        $Output = $this->PageNotFound();
    255             $this->BaseView->Title = T('Page not found');
    256                 $Output = $this->BaseView->ShowPage($Output);
     256          $this->BaseView->Title = T('Page not found');
     257        $Output = $this->BaseView->ShowPage($Output);
    257258                }
    258259        }
Note: See TracChangeset for help on using the changeset viewer.