$wt->assign('autoeditslist', $list); unset($list); //Make latest global edits $list = ' <table class="table-striped table-condensed sortable xt-table" > <tr> <th style="white-space:nowrap">{#date#}</th> <th style="white-space:nowrap">{#wiki#}</th> <th style="white-space:nowrap">Links</th> <th style="white-space:nowrap">{#page#}</th> <th>{#comment#}</th> </tr> '; foreach ($cnt->mLatestEditsGlobal["list"] as $i => $row) { $fdomain = $wt->metap[$row["wiki"]]["domain"]; $fnamespace = $wt->getNamespaces($fdomain, true); $ns = $row["page_namespace"] == 0 ? "" : $fnamespace["names"][$row["page_namespace"]] . ":"; $title = str_replace('_', ' ', $ns . $row["page_title"]); $urltitle = rawurlencode(str_replace(' ', '_', $title)); $date = date('Y-m-d, H:i ', strtotime($row['rev_timestamp'])); $list .= ' <tr> <td class="tddate">' . $date . '</td> <td>' . $row["wiki"] . '</td> <td style="white-space:nowrap">( <a title="Current diff" href="//' . $fdomain . '/w/index.php?title=' . $urltitle . '&diff=prev&oldid=' . $row['rev_id'] . '" title="' . $title . '">diff</a> · <a title="Special:contributions" href="//' . $fdomain . '/w/index.php?title=Special:Contributions&tagfilter=&contribs=user&target=' . $ui->userUrl . '" >log</a> · <a title="XTools topedits: useredits per page" href="//' . XTOOLS_BASE_WEB_DIR . '/topedits/index.php?project=' . $fdomain . '&user='******'&page=' . $urltitle . '">top</a> ) </td> <td class="tdtitle break" ><a class="break" href="//' . $fdomain . '/wiki/' . $urltitle . '" >' . $title . '</a></td>