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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user