Index: trunk/phase3/includes/api/ApiQueryLinks.php |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | "original value returned by the previous query", "_badcontinue"); |
94 | 94 | $plfrom = intval($cont[0]); |
95 | 95 | $plns = intval($cont[1]); |
96 | | - $pltitle = $this->getDb()->strencode($cont[2]); |
| 96 | + $pltitle = $this->getDb()->strencode($this->titleToKey($cont[2])); |
97 | 97 | $this->addWhere("{$this->prefix}_from > $plfrom OR ". |
98 | 98 | "({$this->prefix}_from = $plfrom AND ". |
99 | 99 | "({$this->prefix}_namespace > $plns OR ". |
— | — | @@ -128,7 +128,8 @@ |
129 | 129 | // We've reached the one extra which shows that |
130 | 130 | // there are additional pages to be had. Stop here... |
131 | 131 | $this->setContinueEnumParameter('continue', |
132 | | - "{$row->pl_from}|{$row->pl_namespace}|{$row->pl_title}"); |
| 132 | + "{$row->pl_from}|{$row->pl_namespace}|" . |
| 133 | + $this->keyToTitle($row->pl_title)); |
133 | 134 | break; |
134 | 135 | } |
135 | 136 | if ($lastId != $row->pl_from) { |
— | — | @@ -157,7 +158,8 @@ |
158 | 159 | // We've reached the one extra which shows that |
159 | 160 | // there are additional pages to be had. Stop here... |
160 | 161 | $this->setContinueEnumParameter('continue', |
161 | | - "{$row->pl_from}|{$row->pl_namespace}|{$row->pl_title}"); |
| 162 | + "{$row->pl_from}|{$row->pl_namespace}|" . |
| 163 | + $this->keyToTitle($row->pl_title)); |
162 | 164 | break; |
163 | 165 | } |
164 | 166 | $titles[] = Title :: makeTitle($row->pl_namespace, $row->pl_title); |
Index: trunk/phase3/includes/api/ApiQueryCategories.php |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | $this->dieUsage("Invalid continue param. You should pass the " . |
88 | 88 | "original value returned by the previous query", "_badcontinue"); |
89 | 89 | $clfrom = intval($cont[0]); |
90 | | - $clto = $this->getDb()->strencode($cont[1]); |
| 90 | + $clto = $this->getDb()->strencode($this->titleToKey($cont[1])); |
91 | 91 | $this->addWhere("cl_from > $clfrom OR ". |
92 | 92 | "(cl_from = $clfrom AND ". |
93 | 93 | "cl_to >= '$clto')"); |
— | — | @@ -109,7 +109,8 @@ |
110 | 110 | if (++$count > $params['limit']) { |
111 | 111 | // We've reached the one extra which shows that |
112 | 112 | // there are additional pages to be had. Stop here... |
113 | | - $this->setContinueEnumParameter('continue', "{$row->cl_from}|{$row->cl_to}"); |
| 113 | + $this->setContinueEnumParameter('continue', $row->cl_from . |
| 114 | + '|' . $this->keyToTitle($row->cl_to)); |
114 | 115 | break; |
115 | 116 | } |
116 | 117 | if ($lastId != $row->cl_from) { |
— | — | @@ -143,7 +144,8 @@ |
144 | 145 | if (++$count > $params['limit']) { |
145 | 146 | // We've reached the one extra which shows that |
146 | 147 | // there are additional pages to be had. Stop here... |
147 | | - $this->setContinueEnumParameter('continue', "{$row->il_from}|{$row->il_to}"); |
| 148 | + $this->setContinueEnumParameter('continue', $row->cl_from . |
| 149 | + '|' . $this->keyToTitle($row->cl_to)); |
148 | 150 | break; |
149 | 151 | } |
150 | 152 | |
Index: trunk/phase3/includes/api/ApiQueryImages.php |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | $this->dieUsage("Invalid continue param. You should pass the " . |
68 | 68 | "original value returned by the previous query", "_badcontinue"); |
69 | 69 | $ilfrom = intval($cont[0]); |
70 | | - $ilto = $this->getDb()->strencode($cont[1]); |
| 70 | + $ilto = $this->getDb()->strencode($this->titleToKey($cont[1])); |
71 | 71 | $this->addWhere("il_from > $ilfrom OR ". |
72 | 72 | "(il_from = $ilfrom AND ". |
73 | 73 | "il_to >= '$ilto')"); |
— | — | @@ -90,7 +90,8 @@ |
91 | 91 | if (++$count > $params['limit']) { |
92 | 92 | // We've reached the one extra which shows that |
93 | 93 | // there are additional pages to be had. Stop here... |
94 | | - $this->setContinueEnumParameter('continue', "{$row->il_from}|{$row->il_to}"); |
| 94 | + $this->setContinueEnumParameter('continue', $row->il_from . |
| 95 | + '|' . $this->keyToTitle($row->il_to)); |
95 | 96 | break; |
96 | 97 | } |
97 | 98 | if ($lastId != $row->il_from) { |
— | — | @@ -118,7 +119,8 @@ |
119 | 120 | if (++$count > $params['limit']) { |
120 | 121 | // We've reached the one extra which shows that |
121 | 122 | // there are additional pages to be had. Stop here... |
122 | | - $this->setContinueEnumParameter('continue', "{$row->il_from}|{$row->il_to}"); |
| 123 | + $this->setContinueEnumParameter('continue', $row->il_from . |
| 124 | + '|' . $this->keyToTitle($row->il_to)); |
123 | 125 | break; |
124 | 126 | } |
125 | 127 | $titles[] = Title :: makeTitle(NS_IMAGE, $row->il_to); |