Index: trunk/phase3/includes/api/ApiQueryImageInfo.php |
— | — | @@ -60,11 +60,11 @@ |
61 | 61 | |
62 | 62 | $data = array(); |
63 | 63 | if ( !$img ) { |
64 | | - $data['missing'] = ''; |
| 64 | + $repository = ''; |
65 | 65 | } else { |
66 | | - |
67 | | - $data['repository'] = $img->getRepoName(); |
68 | | - |
| 66 | + |
| 67 | + $repository = $img->getRepoName(); |
| 68 | + |
69 | 69 | $isCur = true; |
70 | 70 | while($line = $img->nextHistoryLine()) { // assignment |
71 | 71 | $vals = array(); |
— | — | @@ -97,7 +97,11 @@ |
98 | 98 | $img->resetHistory(); |
99 | 99 | } |
100 | 100 | |
101 | | - $this->addPageSubItems($pageId, $data); |
| 101 | + $this->getResult()->addValue(array ('query', 'pages', intval($pageId)), |
| 102 | + 'imagerepository', |
| 103 | + $repository); |
| 104 | + if (!empty($data)) |
| 105 | + $this->addPageSubItems($pageId, $data); |
102 | 106 | } |
103 | 107 | } |
104 | 108 | } |