com web/php: fix is_known_snippet() links (bug #69386): include/errors.inc
| From: | Peter Cowburn | Date: | Wed, 08 Apr 2015 14:15:29 +0000 |
| Subject: | com web/php: fix is_known_snippet() links (bug #69386): include/errors.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-21027@lists.php.net to get a copy of this message | ||
Commit: 38f4dff1fcf18a8ea293836fb71cd6506a21e879
Author: Peter Cowburn <salathe@php.net> Wed, 8 Apr 2015 15:15:29 +0100
Parents: 2c5810148d3249b1a3e843a34e474834b93aa262
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=38f4dff1fcf18a8ea293836fb71cd6506a21e879
Log:
fix is_known_snippet() links (bug #69386)
Bugs:
https://bugs.php.net/69386
Changed paths:
M include/errors.inc
Diff:
diff --git a/include/errors.inc b/include/errors.inc
index 758b02e..f314532 100644
--- a/include/errors.inc
+++ b/include/errors.inc
@@ -452,27 +452,27 @@ Search snippet provider: A dirty proof-of-concept:
function is_known_snippet($term) {
$snippets = array(
'global' => '
- The <b>global</b> keyword is used to manipulate <a
href="/language.variables.scope.php">variable scope</a>, and
- there is also the concept of <a href="/language.variables.superglobals.php">super
globals</a> in PHP,
+ The <b>global</b> keyword is used to manipulate <a
href="/language.variables.scope">variable scope</a>, and
+ there is also the concept of <a href="/language.variables.superglobals">super
globals</a> in PHP,
which are special variables with a global scope.',
'string' => '
- There is the <a href="/language.types.string.php">string type</a>, which is
a scalar,
- and also many <a href="/ref.strings.php">string functions.</a>',
+ There is the <a href="/language.types.string">string type</a>, which is a
scalar,
+ and also many <a href="/ref.strings">string functions.</a>',
'str' => '
- Many <a href="/ref.strings.php">string functions</a> begin with
<b>str</b>,
- and there is also the <a href="/language.types.string.php">string
type</a>.',
+ Many <a href="/ref.strings">string functions</a> begin with
<b>str</b>,
+ and there is also the <a href="/language.types.string">string
type</a>.',
'_server' => '
- <a href="/reserved.variables.server.php">$_SERVER</a>
- is a <a href="/language.variables.superglobals.php">super global</a>,
+ <a href="/reserved.variables..server">$_SERVER</a>
+ is a <a href="/language.variables.superglobals">super global</a>,
and is home to many predefined variables that are typically provided by a web server',
'class' => '
- A <a href="/language.oop5.php">class</a> is an OOP (Object Oriented
Programming) concept,
+ A <a href="/language.oop5">class</a> is an OOP (Object Oriented
Programming) concept,
and PHP is both a procedural and OOP friendly language.',
'function' => '
PHP contains thousands of functions. You might be interested in how a
- <a href="/language.functions.php">function is defined</a>, or
- <a href="/about.prototypes.php">how to read a function prototype</a>.
- See also the list of <a href="/extensions.php">PHP extensions</a>',
+ <a href="/language.functions">function is defined</a>, or
+ <a href="/about.prototypes">how to read a function prototype</a>.
+ See also the list of <a href="/extensions">PHP extensions</a>',
);
$term = strtolower(trim($term));