Development

Changeset 13379

You must first sign up to be able to contribute.

Changeset 13379

Show
Ignore:
Timestamp:
11/26/08 22:30:25 (7 months ago)
Author:
fabien
Message:

[1.2] fixed blank/white screens instead of 404 errors for other types of content than html (closes #5032)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/view/sfView.class.php

    r12473 r13379  
    361361        // use default exception templates 
    362362        $this->template = sfException::getTemplatePathForError($this->context->getRequest()->getRequestFormat(), false); 
     363        $this->directory = dirname($this->template); 
     364        $this->template = basename($this->template); 
    363365        $this->setAttribute('code', '404'); 
    364366        $this->setAttribute('text', 'Not Found'); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.