Topic on Extension talk:GlobalUsage

Prefix of table globalimagelinks

2
Llamaggot (talkcontribs)

Hi,

GlobalUsage.sql creates a table named 'prefix_globalimagelinks' (if 'prefix_' is the value of $wgDBprefix), but the extension is only working if this table is called 'globalimagelinks' instead, without the prefix.

Should GlobalUsage.sql be fixed? Or is there a way to make the extension work with the prefixed table name?

Thanks in advance,

Krinkle (talkcontribs)

The database code resolves the canonical name into the actual name (adding the prefix) automatically. If this doesn't happen that can mean one of two things:

  • There is a bug in MediaWiki core where it doesn't do it properly
  • The GlobalUsage extension is using raw queries instead of abstracted through MediaWiki's handler.

Please file a bug on Bugzilla (Product: MediaWiki extensions; Component: GlobalUsage). Be sure to include the version of your wiki and the version of GlobalUsage (you can get this information by going to Special:Version on your wiki). If possible, also include a link to your wiki in the bug report. Thanks!

Reply to "Prefix of table globalimagelinks"