Browse Source

Fixed typo in ErrorHandler

`$this` -> `$self`
tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
a56ec89685
  1. 2
      framework/yii/base/ErrorHandler.php

2
framework/yii/base/ErrorHandler.php

@ -153,7 +153,7 @@ class ErrorHandler extends Component
// method/function call
$self = $this;
$html = preg_replace_callback('/^(.*)\(\)$/', function ($matches) use ($self) {
return '<a href="http://yiiframework.com/doc/api/2.0/' . $this->htmlEncode($matches[1]) . '" target="_blank">' .
return '<a href="http://yiiframework.com/doc/api/2.0/' . $self->htmlEncode($matches[1]) . '" target="_blank">' .
$self->htmlEncode($matches[1]) . '</a>()';
}, $code);
}

Loading…
Cancel
Save