Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1393,6 +1393,10 @@ |
1394 | 1394 | * @return string Unified diff of $before and $after |
1395 | 1395 | */ |
1396 | 1396 | function wfDiff( $before, $after, $params = '-u' ) { |
| 1397 | + if ($before == $after) { |
| 1398 | + return ''; |
| 1399 | + } |
| 1400 | + |
1397 | 1401 | global $wgDiff; |
1398 | 1402 | |
1399 | 1403 | # This check may also protect against code injection in |