Index: trunk/extensions/CodeBrowse/SpecialCodeBrowse.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | function __construct() { |
6 | 6 | parent::__construct( 'CodeBrowse', 'codebrowse' ); |
7 | 7 | } |
8 | | - function execute( $par = '' ) { |
| 8 | + function execute( $par ) { |
9 | 9 | wfLoadExtensionMessages( 'CodeReview' ); |
10 | 10 | wfLoadExtensionMessages( 'CodeBrowse' ); |
11 | 11 | |
Index: trunk/extensions/CodeBrowse/CodeBrowseItemView.php |
— | — | @@ -5,7 +5,7 @@ |
6 | 6 | parent::__construct( $path, $request ); |
7 | 7 | $parts = explode( '/', $path, 2 ); |
8 | 8 | $this->mRepoName = $parts[0]; |
9 | | - $this->mBasePath = '/'.$parts[1]; |
| 9 | + $this->mBasePath = '/'.@$parts[1]; |
10 | 10 | $this->mRepository = CodeRepository::newFromName( $this->mRepoName ); |
11 | 11 | } |
12 | 12 | |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | "</td><td>".$sk->link( SpecialPage::getTitleFor( |
76 | 76 | 'Code', "{$this->mRepoName}/author/{$item['last_author']}" ), $item['last_author'] ). |
77 | 77 | "</td><td>".$wgLang->timeanddate( $item['time_t'] ). |
78 | | - "</td><td>".$wgLang->formatSize( $item['size'] ). |
| 78 | + "</td><td>". ( isset( $item['size'] ) ? $wgLang->formatSize( $item['size'] ) : '' ) . |
79 | 79 | "</td></tr>\n"; |
80 | 80 | |
81 | 81 | } |