Permalink
Browse files

Possible to define multiple block actions for the same block/request …

…combination via the same blocks.ini file. The additional actions can be added to the same line in blocks.ini and have to be separated by space, for example:

[LEFT_SIDE]
blog = blog->latestPosts blog->archive
  • Loading branch information...
1 parent 654e0a1 commit 5d6250add72c2be54af8756150caf8fda438c41b @integry committed Jan 22, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 application/LiveCartRenderer.php
@@ -350,7 +350,10 @@ private function parseConfigFile($file)
$act = $req['action'];
unset($req['controller'], $req['action']);
- $parsed[$con][$act][$file][] = array('params' => $req, 'action' => $this->parseCommand($command));
+ foreach (explode(' ', $command) as $command)
+ {
+ $parsed[$con][$act][$file][] = array('params' => $req, 'action' => $this->parseCommand($command));
+ }
}
}

0 comments on commit 5d6250a

Please sign in to comment.