Index: branches/wmf/1.18wmf1/includes/LinksUpdate.php |
— | — | @@ -403,6 +403,18 @@ |
404 | 404 | foreach( $this->mTemplates as $ns => $dbkeys ) { |
405 | 405 | $diffs = isset( $existing[$ns] ) ? array_diff_key( $dbkeys, $existing[$ns] ) : $dbkeys; |
406 | 406 | foreach ( $diffs as $dbk => $id ) { |
| 407 | + // HACK for investigating bug 31576 --Roan |
| 408 | + if ( in_array( $dbk, array( 'NAMESPACE', 'PAGENAME', 'SERVER', 'CONTENTLANGUAGE', 'PAGENAMEE' ) ) ) { |
| 409 | + $now = wfTimestampNow(); |
| 410 | + $hostname = wfHostname(); |
| 411 | + wfErrorLog( "Bad template $dbk in page [[{$this->mTitle->getPrefixedText()}]] timestamp $now generated by $hostname callers " . wfGetAllCallers( false ) . "\n", 'udp://10.0.5.8:8420/bug31576' ); |
| 412 | + ob_start(); |
| 413 | + debug_print_backtrace(); |
| 414 | + $backtrace = ob_get_contents(); |
| 415 | + ob_end_clean(); |
| 416 | + $backtrace = substr( $backtrace, -49999 ); |
| 417 | + wfErrorLog( $backtrace . "\n", 'udp://10.0.5.8:8420/bug31576bt' ); |
| 418 | + } |
407 | 419 | $arr[] = array( |
408 | 420 | 'tl_from' => $this->mId, |
409 | 421 | 'tl_namespace' => $ns, |