mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
ENHANMENT: continue replacing deprecated Director::urlParams()
This commit is contained in:
parent
1d4d7c88a8
commit
b48504f795
@ -73,7 +73,7 @@ class BlogHolder extends BlogTree implements PermissionProvider {
|
|||||||
* Only display the blog entries that have the specified tag
|
* Only display the blog entries that have the specified tag
|
||||||
*/
|
*/
|
||||||
function ShowTag() {
|
function ShowTag() {
|
||||||
if(Director::urlParam('Action') == 'tag') {
|
if($this->request->latestParam('Action') == 'tag') {
|
||||||
return Convert::raw2xml(Director::urlParam('ID'));
|
return Convert::raw2xml(Director::urlParam('ID'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,7 +82,7 @@ class BlogHolder extends BlogTree implements PermissionProvider {
|
|||||||
* Check if url has "/post"
|
* Check if url has "/post"
|
||||||
*/
|
*/
|
||||||
function isPost() {
|
function isPost() {
|
||||||
return Director::urlParam('Action') == 'post';
|
return $this->request->latestParam('Action') == 'post';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user