| @@ 464-467 (lines=4) @@ | ||
| 461 | ||
| 462 | if ( preg_match( '#^' . $key . '$#', $uri ) ) |
|
| 463 | { |
|
| 464 | if ( strpos( $val, '$' ) !== FALSE AND strpos( $key, '(' ) !== FALSE ) |
|
| 465 | { |
|
| 466 | $val = preg_replace( '#^' . $key . '$#', $val, $uri ); |
|
| 467 | } |
|
| 468 | ||
| 469 | return explode( '/', $module . '/' . $val ); |
|
| 470 | } |
|
| @@ 411-414 (lines=4) @@ | ||
| 408 | $val = call_user_func_array($val, $matches); |
|
| 409 | } |
|
| 410 | // Are we using the default routing method for back-references? |
|
| 411 | elseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE) |
|
| 412 | { |
|
| 413 | $val = preg_replace('#^'.$key.'$#', $val, $uri); |
|
| 414 | } |
|
| 415 | ||
| 416 | $this->_set_request(explode('/', $val)); |
|
| 417 | return; |
|