r43001 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43000‎ | r43001 | r43002 >
Date:17:34, 1 November 2008
Author:ialex
Status:old
Tags:
Comment:
fix some errors
Modified paths:
  • /trunk/extensions/CodeBrowse/CodeBrowseItemView.php (modified) (history)
  • /trunk/extensions/CodeBrowse/SpecialCodeBrowse.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeBrowse/SpecialCodeBrowse.php
@@ -4,7 +4,7 @@
55 function __construct() {
66 parent::__construct( 'CodeBrowse', 'codebrowse' );
77 }
8 - function execute( $par = '' ) {
 8+ function execute( $par ) {
99 wfLoadExtensionMessages( 'CodeReview' );
1010 wfLoadExtensionMessages( 'CodeBrowse' );
1111
Index: trunk/extensions/CodeBrowse/CodeBrowseItemView.php
@@ -5,7 +5,7 @@
66 parent::__construct( $path, $request );
77 $parts = explode( '/', $path, 2 );
88 $this->mRepoName = $parts[0];
9 - $this->mBasePath = '/'.$parts[1];
 9+ $this->mBasePath = '/'.@$parts[1];
1010 $this->mRepository = CodeRepository::newFromName( $this->mRepoName );
1111 }
1212
@@ -74,7 +74,7 @@
7575 "</td><td>".$sk->link( SpecialPage::getTitleFor(
7676 'Code', "{$this->mRepoName}/author/{$item['last_author']}" ), $item['last_author'] ).
7777 "</td><td>".$wgLang->timeanddate( $item['time_t'] ).
78 - "</td><td>".$wgLang->formatSize( $item['size'] ).
 78+ "</td><td>". ( isset( $item['size'] ) ? $wgLang->formatSize( $item['size'] ) : '' ) .
7979 "</td></tr>\n";
8080
8181 }

Status & tagging log