Index: trunk/tools/rotatebot/rotbot.php |
— | — | @@ -65,7 +65,8 @@ |
66 | 66 | //$katname = "Images_requiring_rotation_by_bot"; |
67 | 67 | logfile("Prüfe 'Category:$katname' auf Bilder"); |
68 | 68 | |
69 | | -$queryurl = "http://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:".$katname."&format=php&cmprop=ids|title|sortkey|timestamp&cmnamespace=6&cmsort=timestamp&cmtype=file&cmlimit=".$config['limit']; |
| 69 | +$queryurl = "http://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:" |
| 70 | + . $katname . "&format=php&cmprop=ids|title|sortkey|timestamp&cmnamespace=6&cmsort=timestamp&cmtype=file&cmdir=desc&cmlimit=".$config['limit']; |
70 | 71 | $rawrequ = file_get_contents($queryurl) or suicide("Error api.php not accessible."); |
71 | 72 | $contentarray = unserialize($rawrequ); |
72 | 73 | |