Project

General

Profile

« Previous | Next » 

Revision 7886

vegpath/index.php: phpPgAdmin(): Factored out appending of "&subject="

View differences:

index.php
54 54
	return function($path) use($url)
55 55
	{
56 56
		$path = parse_dot_path($path);
57
		$subject = "schema";
57 58
		if ($path->head)
58 59
		{
59 60
			$url .= "&table=".$path->head;
60
			if ($path->tail) $url .= "&column=".$path->tail."&subject=column";
61
			else $url .= "&subject=table";
61
			if ($path->tail)
62
			{
63
				$url .= "&column=".$path->tail;
64
				$subject = "column";
65
			}
66
			else $subject = "table";
62 67
		}
63
		else $url .= "&subject=schema";
64
		return $url;
68
		return $url."&subject=".$subject;
65 69
	};
66 70
}
67 71

  

Also available in: Unified diff