delinquent_files/demon.php

changeset 10
d80db6c7a442
parent 9
43902b1af1b9
equal deleted inserted replaced
9:43902b1af1b9 10:d80db6c7a442
614 'wiki' => $usage->gil_wiki , 614 'wiki' => $usage->gil_wiki ,
615 'page' => $page , 615 'page' => $page ,
616 'namespace' => $usage->gil_page_namespace_id , 616 'namespace' => $usage->gil_page_namespace_id ,
617 'timestamp' => $ts , 617 'timestamp' => $ts ,
618 'comment' => $comment , 618 'comment' => $comment ,
619 'log_id' => 0, # -1 , 619 'log_id' => substr($ts,0,10), # was: -1 (into unsigned field!); db has a unique on action+page+log_id, so fake it hard
620 'log_timestamp' => $ts , 620 'log_timestamp' => $ts ,
621 'user' => $user , 621 'user' => $user ,
622 'done' => 0 , 622 'done' => 0 ,
623 'replace_with_file' => $new_file 623 'replace_with_file' => $new_file
624 ) ; 624 ) ;

mercurial