Permalink
Browse files

Make named subpatterns backwards compatible with old php versions

  • Loading branch information...
mfairchild365 committed Mar 28, 2012
1 parent ad01b0e commit e63db6bce3695613f34c06ea297d86ddc8380044
@@ -10,7 +10,7 @@ public static function getGetRoutes()
public static function getPostRoutes()
{
- return array('/^assignment\/(?<id>[\d]+)\/edit$/i' => 'Edit');
+ return array('/^assignment\/(?P<id>[\d]+)\/edit$/i' => 'Edit');
}
public static function getDeleteRoutes()
@@ -6,7 +6,7 @@ class Routes extends \RegExpRouter\RoutesInterface
public static function getGetRoutes()
{
return array('/^conversation$/i' => 'View',
- '/^history\/(?<conversation_id>[\d]+)$/i' => 'Archived',
+ '/^history\/(?P<conversation_id>[\d]+)$/i' => 'Archived',
'/^$/i' => 'View',
'/^conversations$/i' => 'RecordList',
'/^history$/i' => 'History',);
@@ -14,7 +14,7 @@ public static function getPostRoutes()
return array('/^clientLogin$/i' => 'ClientLogin',
'/^operatorLogin$/i' => 'OperatorLogin',
'/^user\/settings$/i' => 'Edit',
- '/^users\/(?<id>[\d]+)\/edit$/i' => 'Edit');
+ '/^users\/(?P<id>[\d]+)\/edit$/i' => 'Edit');
}
public static function getDeleteRoutes()

0 comments on commit e63db6b

Please sign in to comment.