Revision 7896
Added by Aaron Marcuse-Kubitza over 11 years ago
web/vegpath/util.php | ||
---|---|---|
34 | 34 |
|
35 | 35 |
function partition($str, $delim) |
36 | 36 |
{ |
37 |
$delim_idx = strpos($str, $delim);
|
|
37 |
$delim_idx = strpos($delim, $str);
|
|
38 | 38 |
return $delim_idx >= 0 ? new Path(substr($str, 0, $delim_idx), |
39 | 39 |
substr($str, $delim_idx+strlen($delim))) : new Path($str, ""); |
40 | 40 |
} |
web/vegpath/index.php | ||
---|---|---|
86 | 86 |
} |
87 | 87 |
else $target = "tbl_structure"; |
88 | 88 |
} |
89 |
$url .= "&target=".$target; |
|
89 |
$url .= "&target=".$target.".php";
|
|
90 | 90 |
return $url; |
91 | 91 |
}; |
92 | 92 |
} |
Also available in: Unified diff
web/vegpath/util.php: partition(): Fixed bug where strpos() takes the search-for param first rather than second