mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Applied an urgent hack to work new blog archive link (e.g 2009/05)
This commit is contained in:
parent
8589682b7e
commit
a91d0eeb68
@ -140,6 +140,17 @@ class BlogHolder_Controller extends BlogTree_Controller {
|
||||
parent::init();
|
||||
Requirements::themedCSS("bbcodehelp");
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: this is an urgent fix to work with archive link (e.g. 2009/04) for Nelsoncc project. Replace this with something better.
|
||||
*/
|
||||
function checkAccessAction($action) {
|
||||
if (preg_match('/[0-9]{4}/', $action))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return parent::checkAccessAction($action);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return list of usable tags for help
|
||||
|
Loading…
Reference in New Issue
Block a user