One thing to watch is that in the line
$sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND
page_title='$ti'";
you may need to change the UPDATE page SET to UPDATE prefix_page SET if
you have a used a prefix on your tables when you installed the wiki
I do have the code that makes the system 'generic' and will post it
tomorrow from work.
Ta
John
open kwBreadCrumbs.php and change :
$ts = mktime();
$now = gmdate("YmdHis", $ts + 120);
$ns = $wgTitle->getNamespace();
$ti = wfStrencode($wgTitle->getDBkey());
$sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND
page_title='$ti'";
wfQuery($sql, DB_WRITE, "kwBreadCrumbsNoCache");
to
$dbr =& wfGetDB( DB_SLAVE );
$ts = mktime();
$now = gmdate("YmdHis", $ts + 120);
$ns = $wgTitle->getNamespace();
$ti = $dbr->addQuotes($wgTitle->getDBkey());
$sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND
page_title='$ti'";
$res = $dbr->doQuery( $sql );
don't know if it's "correct" (clean and safe), but it works with 1.9
Alexis
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l