Skip to content
Permalink
Browse files

Removing some code duplication.

  • Loading branch information...
markstory committed Jul 4, 2010
1 parent 22fbc24 commit 052c81774cf273e7918a2abef62b6319736692e5
Showing with 3 additions and 6 deletions.
  1. +3 −6 cake/libs/view/view.php
@@ -667,12 +667,9 @@ public function __get($name) {
* @return void
*/
public function loadHelpers() {
foreach ($this->helpers as $i => $helper) {
$options = array();
if (!is_int($i)) {
list($options, $helper) = array($helper, $i);
}
$this->Helpers->load($helper, $options, true);
$helpers = HelperCollection::normalizeObjectArray($this->helpers);
foreach ($helpers as $name => $properties) {
$this->Helpers->load($properties['class'], $properties['settings'], true);
}
}

0 comments on commit 052c817

Please sign in to comment.
You can’t perform that action at this time.