cvs: livedocs / livedoc.php style_mapping.php

From: Date: Sat, 01 May 2004 10:31:15 +0000
Subject: cvs: livedocs / livedoc.php style_mapping.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969360379@lists.php.net to get a copy of this message
nlopess Sat May 1 06:31:15 2004 EDT Modified files: /livedocs livedoc.php style_mapping.php Log: BUG FIX: fix the functions links in OO and OO names in reference pages http://cvs.php.net/diff.php/livedocs/livedoc.php?r1=1.96&r2=1.97&ty=u Index: livedocs/livedoc.php diff -u livedocs/livedoc.php:1.96 livedocs/livedoc.php:1.97 --- livedocs/livedoc.php:1.96 Sat May 1 06:16:12 2004 +++ livedocs/livedoc.php Sat May 1 06:31:13 2004 @@ -18,7 +18,7 @@ // | Generate an HTML version of a phpdoc/docbook page on the fly | // +----------------------------------------------------------------------+ // -// $Id: livedoc.php,v 1.96 2004/05/01 10:16:12 nlopess Exp $ +// $Id: livedoc.php,v 1.97 2004/05/01 10:31:13 nlopess Exp $ define('LIVEDOC_SOURCE', dirname(__FILE__)); include LIVEDOC_SOURCE . '/common.php'; @@ -465,7 +465,7 @@ if (count($parts) == 4) { $id = 'function.' . $parts[3]; - $func_name = strtr($parts[3], array('-'=>'_')); + $func_name = lookup_title($id); } elseif ($parts[3] == 'class' && count($parts) == 5) { $id = 'class.' . $parts[4]; $func_name = strtr($parts[4], array('-'=>'_')); http://cvs.php.net/diff.php/livedocs/style_mapping.php?r1=1.9&r2=1.10&ty=u Index: livedocs/style_mapping.php diff -u livedocs/style_mapping.php:1.9 livedocs/style_mapping.php:1.10 --- livedocs/style_mapping.php:1.9 Wed Apr 28 12:45:33 2004 +++ livedocs/style_mapping.php Sat May 1 06:31:14 2004 @@ -18,7 +18,7 @@ // | Helper functions for formatting elements | // +----------------------------------------------------------------------+ // -// $Id: style_mapping.php,v 1.9 2004/04/28 16:45:33 nlopess Exp $ +// $Id: style_mapping.php,v 1.10 2004/05/01 10:31:14 nlopess Exp $ // almost XPATH.. ;-) $map = array( @@ -243,7 +243,12 @@ { global $current_page, $lang; - $itemid = strtr($node->content, '_', '-'); + $replace = array('_' => '-', + '::' => '-', + '->' => '-'); + + $itemid = strtr($node->content, $replace); + $itemid = strtr($itemid, array('---' => '-')); $class = 'function'; if (isset($node->attributes['class'])) {

« previous php.doc (#969360379) next »