Revision 14117
Added by Aaron Marcuse-Kubitza over 10 years ago
username_prefix.php | ||
---|---|---|
35 | 35 |
# translate reverse @-paths into forward .-paths |
36 | 36 |
$path = implode(".", array_reverse(explode("@", $path))); |
37 | 37 |
|
38 |
# undo transposes: y~x_@url -> x_y@url , Y~x@url -> xY@url |
|
39 |
# these can be used to put the category in a column name first |
|
40 |
$path = preg_replace('/([^.]*)~([^.]*)/', '$2$1', $path); |
|
41 |
|
|
38 | 42 |
return $path; |
39 | 43 |
} |
40 | 44 |
|
Also available in: Unified diff
web/username_prefix.php: added support for transposes ( y~x_@url -> x_y@url , Y~x@url -> xY@url ), which can be used to put the category in a column name first without duplicating the category