mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 23:40:57 +01:00
Mark redirects to php.net from symbols as external
Summary: Fixes T5942. These are external but currently unmarked. Test Plan: Visited link, got redirected. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Maniphest Tasks: T5942 Differential Revision: https://secure.phabricator.com/D10332
This commit is contained in:
parent
79c837d505
commit
05eb77c0a7
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,7 @@ final class DiffusionSymbolController extends DiffusionController {
|
|||
$functions = get_defined_functions();
|
||||
if (in_array($this->name, $functions['internal'])) {
|
||||
return id(new AphrontRedirectResponse())
|
||||
->setIsExternal(true)
|
||||
->setURI('http://www.php.net/function.'.$this->name);
|
||||
}
|
||||
}
|
||||
|
@ -65,6 +66,7 @@ final class DiffusionSymbolController extends DiffusionController {
|
|||
interface_exists($this->name, false)) {
|
||||
if (id(new ReflectionClass($this->name))->isInternal()) {
|
||||
return id(new AphrontRedirectResponse())
|
||||
->setIsExternal(true)
|
||||
->setURI('http://www.php.net/class.'.$this->name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue