Issue:Createdby not working
From FollowTheScore
I have just upgraded to DPL 1.7.4 running on
- Windows Server 2003 (in VM-ware, 2GB RAM) - Apache 2.2.4 - php 5.2.4 - Mediawiki 1.9.2 - MySQL 5.0.24a - mod_perl 2.0.3 - Perl 5.8.8 - APC 3.0.15-dev
But when I try and run
<DPL> createdby=Andygray addauthor=true </DPL>
I am getting all users content, i.e. it does not seem to work
What am I doing wrong or is this a bug?
Reply
Obviously this is a bug.
changing the "=" in source lines 2653 and 2657 to ".=" should solve the problem. So these lines should read:
if ($bAddAuthor && $sSqlRevisionTable ==) { $sSqlRevisionTable = $sRevisionTable . ' AS rev, '; #2653 ----> $sSqlCond_page_rev .= ' AND '.$sPageTable.' ..... } if ($bAddLastEditor && $sSqlRevisionTable ==) { $sSqlRevisionTable = $sRevisionTable . ' AS rev, '; #2657 ----> $sSqlCond_page_rev .= ' AND '.$sPageTable.'.page_id= .... }
Can you please check this? Gero 23:29, 20 November 2008 (UTC)