Changeset 812 for trunk/includes


Ignore:
Timestamp:
May 31, 2014, 9:35:15 AM (11 years ago)
Author:
chronos
Message:
  • Fixed: "Page not found" was not handled correctly. It was handled incorrectly by Redirection module.
Location:
trunk/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Version.php

    r811 r812  
    66// and system will need database update.
    77
    8 $Revision = 811; // Subversion revision
     8$Revision = 812; // Subversion revision
    99$DatabaseRevision = 811; // Database structure revision
    10 $ReleaseTime = '2014-05-28';
     10$ReleaseTime = '2014-05-31';
  • 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.