ENHANMENT: continue replacing deprecated Director::urlParams()

This commit is contained in:
Carlos Barberis 2010-05-27 23:47:13 +00:00
parent 1d4d7c88a8
commit b48504f795

View File

@ -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';
} }
/** /**