Extension talk:RandomPages

From MediaWiki.org
Jump to navigation Jump to search

Bug #1[edit]

Hello, I installed your extension, and found quickly a bug (well, not really a bug, but something to be modified) :

Line 71 of RandomPages.php :

$sql = 'select * from page where';

The table "page" might not exist, depending on the installation table prefix, set at the time of initial configuration. For exemple, my table corresponding to "page" was in fact called "wm_page".

I edited the source code and now it works fine! :-) Here are the modifications (line 71 and 72) :

global $wgDBprefix;
$sql = sprintf('select * from %spage where',$wgDBprefix);

--Fish1203 13:02, 9 February 2008 (UTC)

Thanks for the heads-up, it's fixed now in 0.2. You can drop bugs/feature requests at http://www.locknet.ro/contact, development it's done on http://gitorious.org/projects/randompages

Wiki text output[edit]

Hi, how can I change the output so I can enter wiki text in the extension, e.g. {{SomeTemplate|%s}}? --Subfader 15:58, 6 November 2008 (UTC)