mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Remove deprecated Director::urlParam() and Director::urlParams()
Use the methods param() and params() on SS_HTTPRequest instead.
This commit is contained in:
parent
671881420b
commit
de0ade9636
@ -309,26 +309,6 @@ class Director implements TemplateGlobalProvider {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the urlParam with the given name
|
||||
*
|
||||
* @deprecated 3.0 Use SS_HTTPRequest->param()
|
||||
*/
|
||||
public static function urlParam($name) {
|
||||
Deprecation::notice('3.0', 'Use SS_HTTPRequest->param() instead.');
|
||||
if(isset(Director::$urlParams[$name])) return Director::$urlParams[$name];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of urlParams.
|
||||
*
|
||||
* @deprecated 3.0 Use SS_HTTPRequest->params()
|
||||
*/
|
||||
public static function urlParams() {
|
||||
Deprecation::notice('3.0', 'Use SS_HTTPRequest->params() instead.');
|
||||
return Director::$urlParams;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set url parameters (should only be called internally by RequestHandler->handleRequest()).
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user