dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dca6afc
)
Fix fixme placed on r30022 by me (fixing per comment)
author
Sam Reed
<reedy@users.mediawiki.org>
Tue, 10 Aug 2010 12:55:22 +0000
(12:55 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Tue, 10 Aug 2010 12:55:22 +0000
(12:55 +0000)
Adding a few braces too
includes/parser/Preprocessor_DOM.php
patch
|
blob
|
history
diff --git
a/includes/parser/Preprocessor_DOM.php
b/includes/parser/Preprocessor_DOM.php
index
c13b033
..
ae33901
100644
(file)
--- a/
includes/parser/Preprocessor_DOM.php
+++ b/
includes/parser/Preprocessor_DOM.php
@@
-1136,7
+1136,9
@@
class PPFrame_DOM implements PPFrame {
$first = true;
$s = '';
foreach ( $args as $root ) {
$first = true;
$s = '';
foreach ( $args as $root ) {
- if ( $root instanceof PPNode_DOM ) $root = $root->node;
+ if ( $root instanceof PPNode_DOM ) {
+ $root = $root->node;
+ }
if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
$root = array( $root );
}
if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
$root = array( $root );
}
@@
-1160,9
+1162,11
@@
class PPFrame_DOM implements PPFrame {
$args = array_slice( func_get_args(), 1 );
$out = array();
$first = true;
$args = array_slice( func_get_args(), 1 );
$out = array();
$first = true;
- if ( $root instanceof PPNode_DOM ) $root = $root->node;
foreach ( $args as $root ) {
foreach ( $args as $root ) {
+ if ( $root instanceof PPNode_DOM ) {
+ $root = $root->node;
+ }
if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
$root = array( $root );
}
if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
$root = array( $root );
}
@@
-1187,7
+1191,9
@@
class PPFrame_DOM implements PPFrame {
$first = true;
foreach ( $args as $root ) {
$first = true;
foreach ( $args as $root ) {
- if ( $root instanceof PPNode_DOM ) $root = $root->node;
+ if ( $root instanceof PPNode_DOM ) {
+ $root = $root->node;
+ }
if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
$root = array( $root );
}
if ( !is_array( $root ) && !( $root instanceof DOMNodeList ) ) {
$root = array( $root );
}