Project

General

Profile

« Previous | Next » 

Revision 14335

web/username_prefix.php: added support for substitutions ( x."_y@url -> x.x_y@url ), which can be used when a table name is repeated in a column name

View differences:

username_prefix.php
36 36
	#  the website with the new value after the :
37 37
	$path = preg_replace('/([^.]*)~([^.]*)/', '$2$1', $path);
38 38
	
39
	# apply substitutions: x."_y@url -> x.x_y@url
40
	# these can be used when a table name is repeated in a column name
41
	$path = preg_replace('/(([^.]+)\.[^.]*)"/', '$1$2', $path);
42
	
39 43
	return $path;
40 44
}
41 45

  

Also available in: Unified diff