Ilia Alshanetsky wrote:
iliaa Fri Jun 17 18:10:18 2005 EDT
Modified files:
/livedocs livedoc_funcs.php mkindex.php
Log:
Added some warnings on common errors.
Fixed bug #33358 (Use TITLEABBREV in table of contents).
Ilia,
It may not have been this one, but
Curt mustn't have updated his patch, $children[$parent] needs to be
changed to $children[$valsub] (on the indicated line below) otherwise
the function list and other 'sub-TOCs' are broken.
Matt
Ilia Alshanetsky wrote:
> iliaa Wed Feb 9 15:03:44 2005 EDT
>
> Modified files:
> /livedocs l
Nuno Lopes wrote:
A slightly optimized version would be:
The one I submitted was copied directly from php-web, but I have no
problem with the optimization, once tested.
P.S.: BTW, thanks for reviewing some livedocs' patches.
Yes, thanks.
Ilia also said he'd take a look, later today.
S
+// turn urls into links
+$the_note = preg_replace(
+
"/((mailto|http|ftp|nntp|news):.+?)(>|\\s|\\)|\"|\\.\\s|<|$)/",
+"\\1\\3",
+$the_note
+);
+
A slightly optimized version would be:
$
Ilia Alshanetsky wrote:
> - switch (count($parts)) {
> - case 4:
> - $id = 'function.' . $parts[3];
> - $func_name = lookup_title($id);
> - break;
> -
> - case 5:
> - if ($parts[3] == 'class'