Extension talk:Random Pages

From MediaWiki.org
Jump to: navigation, search

[edit] Bug #1

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

[edit] Wiki text output

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)

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox