Project

General

Profile

« Previous | Next » 

Revision 7938

web/vegpath/index.php: add_ref(): Renamed $suffix to $path_pat to distinguish it from the actual suffix string sent in the URL

View differences:

web/vegpath/index.php
18 18
$path = parse_mixed_path($_SERVER["QUERY_STRING"]);
19 19
$ref = strtolower($path->head);
20 20

  
21
function add_ref($name, $suffix, $url_func)
21
function add_ref($name, $path_pat, $url_func)
22 22
{
23 23
	global $alias, $h_level, $path, $ref;
24 24
	if (is_string($url_func)) $url_func = by_prefix($url_func);
25 25
	
26 26
	print("<h".$h_level.' id="'.$name.'">'.$alias.'<big><a href="http://'.$alias
27
		.$name.'">'.$name."</a></big><i>".$suffix."</i></h".$h_level.">\n");
27
		.$name.'">'.$name."</a></big><i>".$path_pat."</i></h".$h_level.">\n");
28 28
	if ($ref === strtolower($name)) # found match, so redirect
29 29
	{
30 30
		header("Location: ".strip_url($url_func($path->tail)));

Also available in: Unified diff