Browse Source

minor cleanup.

tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
c1428a174a
  1. 2
      framework/views/error.php
  2. 2
      framework/views/exception.php

2
framework/views/error.php

@ -4,7 +4,7 @@
* @var \yii\base\ErrorHandler $context * @var \yii\base\ErrorHandler $context
*/ */
$context = $this->context; $context = $this->context;
$title = $context->htmlEncode($exception instanceof \yii\base\Exception || $exception instanceof \yii\base\ErrorException ? $exception->getName() : get_class($exception)); $title = $context->htmlEncode($exception instanceof \yii\base\Exception ? $exception->getName() : get_class($exception));
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>

2
framework/views/exception.php

@ -4,7 +4,7 @@
* @var \yii\base\ErrorHandler $context * @var \yii\base\ErrorHandler $context
*/ */
$context = $this->context; $context = $this->context;
$title = $context->htmlEncode($exception instanceof \yii\base\Exception || $exception instanceof \yii\base\ErrorException ? $exception->getName().' ('.get_class($exception).')' : get_class($exception)); $title = $context->htmlEncode($exception instanceof \yii\base\Exception ? $exception->getName().' ('.get_class($exception).')' : get_class($exception));
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>

Loading…
Cancel
Save