mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Disable autoload in search for internal class
Test Plan: /diffusion/symbol/Exception/?jump=1&type=class&lang=php /diffusion/symbol/Countable/?jump=1&type=class&lang=php Reviewers: epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D2124
This commit is contained in:
parent
e69ba98e20
commit
a234a712cd
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ final class DiffusionSymbolController extends DiffusionController {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'class':
|
case 'class':
|
||||||
if (class_exists($this->name) ||
|
if (class_exists($this->name, false) ||
|
||||||
in_array($this->name, get_declared_interfaces())) {
|
interface_exists($this->name, false)) {
|
||||||
if (id(new ReflectionClass($this->name))->isInternal()) {
|
if (id(new ReflectionClass($this->name))->isInternal()) {
|
||||||
return id(new AphrontRedirectResponse())
|
return id(new AphrontRedirectResponse())
|
||||||
->setURI('http://www.php.net/class.'.$this->name);
|
->setURI('http://www.php.net/class.'.$this->name);
|
||||||
|
|
Loading…
Reference in a new issue