mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 16:00:59 +01:00
Ensure displaying PHP Manual function page for PHP function symbols
Summary: Some PHP functions have the same name as extension or class. php.net prefers them over functions. Test Plan: http://www.php.net/hash http://www.php.net/function.hash http://www.php.net/function.hash_final Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1977
This commit is contained in:
parent
a1729c1f93
commit
f6fcf034c1
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ final class DiffusionSymbolController extends DiffusionController {
|
|||
if ($request->getStr('type') == 'function') {
|
||||
if (in_array($this->name, idx(get_defined_functions(), 'internal'))) {
|
||||
return id(new AphrontRedirectResponse())
|
||||
->setURI('http://www.php.net/'.$this->name);
|
||||
->setURI('http://www.php.net/function.'.$this->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue