Index: trunk/extensions/CodeReview/backend/CodeRevision.php |
— | — | @@ -25,10 +25,8 @@ |
26 | 26 | if ( $rev->mPaths ) { |
27 | 27 | if ( count( $rev->mPaths ) == 1 ) { |
28 | 28 | $common = $rev->mPaths[0]['path']; |
29 | | - $rev->mPaths = CodeRevision::getPathFragments( $rev->mPaths ); |
30 | 29 | } else { |
31 | 30 | $first = array_shift( $rev->mPaths ); |
32 | | - |
33 | 31 | $common = explode( '/', $first['path'] ); |
34 | 32 | |
35 | 33 | foreach ( $rev->mPaths as $path ) { |
— | — | @@ -51,10 +49,10 @@ |
52 | 50 | } |
53 | 51 | $common = implode( '/', $common ); |
54 | 52 | |
55 | | - $rev->mPaths = CodeRevision::getPathFragments( $rev->mPaths ); |
56 | | - |
57 | 53 | array_unshift( $rev->mPaths, $first ); |
58 | 54 | } |
| 55 | + |
| 56 | + $rev->mPaths = CodeRevision::getPathFragments( $rev->mPaths ); |
59 | 57 | } |
60 | 58 | $rev->mCommonPath = $common; |
61 | 59 | |