Hi all,
I'm trying to modify Mediawiki to meet our needs, but I find myself stuck trying to find the exact SQL statement I'm looking to modify. Say I have a page view that is looking at the article "Iteration"
URL would be: site.com/index.php?title=Iteration
Thus $wgRequest becomes "view". But which SQL statement (and where) is the one that pulls the exact article from the database? I've tried modifying every SQL statement I can find in the software that might be a match, but none of them has provided me with the results I desire. I'm assuming it's one of the SELECT statements that has something along the lines of "WHERE cur_title = '{$t}', but I sure can't find it.
Thanks for any pointers.
Andrew
This is some documentation at http://wikipedia.sf.net/mwdoc/, though this is for the CVS version, 1.4 (NOT the released 1.3.x).
Acording to Hashar on IRC, there is a script in ./maintenance/ to generate it (mwdocgen.php). Again, this is only in the CVS version and the comments needed to run it are not present in v1.3.7 (and likely all previous versions).
My best recomendation is to start looking through the code at where it uses the title and a sql query nearby (it's likely buried in layers and layers of calls).
On Mon, 8 Nov 2004 16:48:10 -0700, Andrew Reberry wiki@hdtvpub.com wrote:
Hi all,
I'm trying to modify Mediawiki to meet our needs, but I find myself stuck trying to find the exact SQL statement I'm looking to modify. Say I have a page view that is looking at the article "Iteration"
URL would be: site.com/index.php?title=Iteration
Thus $wgRequest becomes "view". But which SQL statement (and where) is the one that pulls the exact article from the database? I've tried modifying every SQL statement I can find in the software that might be a match, but none of them has provided me with the results I desire. I'm assuming it's one of the SELECT statements that has something along the lines of "WHERE cur_title = '{$t}', but I sure can't find it.
Thanks for any pointers.
Andrew
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org