Skip to content

Commit

Permalink
Merge pull request #2 from zero-24/patch-8
Browse files Browse the repository at this point in the history
Add function desc and mirror CS fixes
  • Loading branch information
OctavianC committed Aug 25, 2015
2 parents 24b8f33 + 75bc61c commit 063c0d1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions plugins/system/cache/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,15 @@ public function onAfterRender()
}
}

protected function isExcluded() {
/**
* Check if the page is excluded from the cache or not.
*
* @return boolean True if the page is excluded else false
*
* @since 3.5
*/
protected function isExcluded()
{
// Check if menu items have been excluded
if ($exclusions = $this->params->get('exclude_menu_items', array()))
{
Expand Down Expand Up @@ -153,7 +161,7 @@ protected function isExcluded() {
// Make sure the exclusion has some content
if (strlen($exclusion))
{
if (preg_match('/'.$exclusion.'/is', $path, $match))
if (preg_match('/' . $exclusion . '/is', $path, $match))
{
return true;
}
Expand Down

0 comments on commit 063c0d1

Please sign in to comment.