$script = '';
foreach ( $toolarray as $tool ) {
- if ( !$tool ) continue;
+ if ( !$tool ) {
+ continue;
+ }
$params = array(
$image = $wgStylePath . '/common/images/' . $tool['image'],
$rev->isDeleted( Revision::DELETED_RESTRICTED ), false );
}
}
- if( $del ) $s .= " $del ";
+ if ( $del ) {
+ $s .= " $del ";
+ }
$s .= " $link";
$s .= " <span class='history-user'>" .
$height_orig = $this->displayImg->getHeight( $page );
$height = $height_orig;
- $showLink = false;
- $linkAttribs = array( 'href' => $full_url );
$longDesc = $this->displayImg->getLongDesc();
wfRunHooks( 'ImageOpenShowImageInlineBefore', array( &$this, &$wgOut ) );
}
$row .= '</td>';
+ $rowClass = null;
wfRunHooks( 'ImagePageFileHistoryLine', array( $this, $file, &$row, &$rowClass ) );
$classAttr = $rowClass ? " class='$rowClass'" : "";
*/
private function showNormalForm( $output, $user ) {
global $wgUser;
- if( ( $count = $this->showItemCount( $output, $user ) ) > 0 ) {
+ $count = $this->showItemCount( $output, $user );
+ if( $count > 0 ) {
$self = SpecialPage::getTitleFor( 'Watchlist' );
$form = Xml::openElement( 'form', array( 'method' => 'post',
'action' => $self->getLocalUrl( array( 'action' => 'edit' ) ) ) );
return true;
}
return false;
-
}
/**
$args[] = $filename;
$command = wfEscapeShellArg( $wgImageMagickConvertCommand ) . " " . implode( " ", $args );
+ $retval = null;
$output = wfShellExec( $command, $retval );
return ( $retval === 0 );
}