Changeset 7655 for trunk/admin/inc/Controller.class.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/Controller.class.php
r6057 r7655 109 109 $contents_itens = $this->controller_contentes->getElementsByTagName(self::__CONTROLLER_CONTENTES_ITEM__); 110 110 111 for ( $i = 0; $i < $contents_itens->length && $contents_itens->item($i)->getAttribute(self::__CONTROLLER_CONTENTES_ITEM_PARAM__) != $section_name; $i++);111 for ( $i = 0; $i < $contents_itens->length && $contents_itens->item($i)->getAttribute(self::__CONTROLLER_CONTENTES_ITEM_PARAM__) != $section_name; ++$i ); 112 112 ( !($i < $contents_itens->length) ) 113 113 and die(__CLASS__ . ' [ ERROR #11 ] :: invalid section "' . $section_name . '"'); … … 125 125 126 126 if ( empty($alias) && $alias !== '0' ) 127 for ( $i = 0; $i < $section_itens->length && $section_itens->item($i)->getAttribute('ref') != $ref; $i++);127 for ( $i = 0; $i < $section_itens->length && $section_itens->item($i)->getAttribute('ref') != $ref; ++$i ); 128 128 else 129 for ( $i = 0; $i < $section_itens->length && ( $section_itens->item($i)->getAttribute('ref') != $ref || $section_itens->item($i)->getAttribute('alias') !== $alias); $i++);129 for ( $i = 0; $i < $section_itens->length && ( $section_itens->item($i)->getAttribute('ref') != $ref || $section_itens->item($i)->getAttribute('alias') !== $alias); ++$i ); 130 130 131 131 ( !($i < $section_itens->length) ) … … 264 264 private function _pack($script) 265 265 { 266 for ( $i = 0; isset($this->_parsers[$i]); $i++)266 for ( $i = 0; isset($this->_parsers[$i]); ++$i ) 267 267 $script = call_user_func(array(&$this,$this->_parsers[$i]), $script); 268 268
Note: See TracChangeset
for help on using the changeset viewer.