User "Awjrichards" posted a comment on MediaWiki.r97106.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97106#c23504
Commit summary:

DonationInterface's GlobalCollect gateway can now post server-side through 
existing forms. (Though doing so would certainly be Bad if the forms we're 
using have credit card fields... but it's okay for testing purposes until we 
have more gateway-specific forms and a working whitelist)

Comment:

<pre>
+                       //can we check to see if the table exists? Bah, I 
should almost certianly do this Fer Reals. 
+
+                       $db->insert( 'communication_stats', $params );
</pre>
Yes, we can.  Take a look at the db documentation - you probably need to get a 
list of available tables and determine if the one you want is in it, although I 
could've sworn there was once a method like 'tableExists( $tablename )' but 
that could be a memory born from feverish dreams long ago. 
[http://svn.wikimedia.org/doc/classDatabaseBase.html#a1ecd0ed35d08e90a4ca5158c7642513d]

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to