Merge branch '0.2' into 0.3

This commit is contained in:
Daniel Hensby 2018-02-20 13:11:09 +00:00
commit 5e05ac92e5
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -131,7 +131,7 @@ class BlogHolder extends BlogTree implements PermissionProvider {
} }
class BlogHolder_Controller extends BlogTree_Controller { class BlogHolder_Controller extends BlogTree_Controller {
static $allowed_actions = array( static $allowed_actions = array(
'index', 'index',
'tag', 'tag',
@ -139,7 +139,7 @@ class BlogHolder_Controller extends BlogTree_Controller {
'post' => 'BLOGMANAGEMENT', 'post' => 'BLOGMANAGEMENT',
'BlogEntryForm' => 'BLOGMANAGEMENT', 'BlogEntryForm' => 'BLOGMANAGEMENT',
); );
function init() { function init() {
parent::init(); parent::init();
Requirements::themedCSS("bbcodehelp"); Requirements::themedCSS("bbcodehelp");
@ -149,9 +149,9 @@ class BlogHolder_Controller extends BlogTree_Controller {
* TODO: this is an urgent fix to work with archive link (e.g. page_url/2009/04). Replace this with something better. * TODO: this is an urgent fix to work with archive link (e.g. page_url/2009/04). Replace this with something better.
*/ */
function checkAccessAction($action) { function checkAccessAction($action) {
if (preg_match('/[0-9]{4}/', $action)) if (preg_match('/[0-9]{4}/', $action))
{ {
return true; return true;
} }
return parent::checkAccessAction($action); return parent::checkAccessAction($action);
} }