dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialRandomInCategory.php
diff --git
a/includes/specials/SpecialRandomInCategory.php
b/includes/specials/SpecialRandomInCategory.php
index
adf12d4
..
855f799
100644
(file)
--- a/
includes/specials/SpecialRandomInCategory.php
+++ b/
includes/specials/SpecialRandomInCategory.php
@@
-219,7
+219,7
@@
class SpecialRandomInCategory extends FormSpecialPage {
'OFFSET' => $offset
],
'join_conds' => [
'OFFSET' => $offset
],
'join_conds' => [
- 'page' => [ '
INNER
JOIN', 'cl_from = page_id' ]
+ 'page' => [ 'JOIN', 'cl_from = page_id' ]
]
];
]
];
@@
-291,7
+291,7
@@
class SpecialRandomInCategory extends FormSpecialPage {
* @param int $offset A small offset to make the result seem more "random"
* @param bool $up Get the result above the random value
* @param string $fname The name of the calling method
* @param int $offset A small offset to make the result seem more "random"
* @param bool $up Get the result above the random value
* @param string $fname The name of the calling method
- * @return
array
Info for the title selected.
+ * @return
stdClass|false
Info for the title selected.
*/
private function selectRandomPageFromDB( $rand, $offset, $up, $fname = __METHOD__ ) {
$dbr = wfGetDB( DB_REPLICA );
*/
private function selectRandomPageFromDB( $rand, $offset, $up, $fname = __METHOD__ ) {
$dbr = wfGetDB( DB_REPLICA );