} catch (Exception $e) { $wt->error = $e->getMessage() . " (topedits::pageObj)"; $wt->showPage(); } if (!$page_id || $page_id == 0) { $wt->toDie('nosuchpage', $page . " ({$domain})"); } $list = getPageEditsPerUser($dbr, $page_id, $domain, $users, $wi); $wt->content = getPageTemplate('resultpage'); $userprefix = ''; } else { $cnt = new Counter($dbr, $user, $domain, true); if ($cnt->optin) { $wt->content = getPageTemplate('resultns'); $nscolon = $page_title = ""; $nsnames = $cnt->getNamespaces(); $list = getTopEditsByNamespace($dbr, $wi, $ui, $nsnames, $namespace); } else { $nsnames = $cnt->getNamespaces(); $wt->content = getPageTemplate('resultns'); $list = $I18N->msg("nograph", array("variables" => array($cnt->getOptinLinkLocal(), $cnt->getOptinLinkGlobal()))) . "<br /> " . $I18N->msg('nograph2', array("variables" => array($wt->linkOauthHelp))); } $userprefix = $nsnames["names"][2]; } $wt->assign('list', $list); $wt->assign('page', $nscolon . $page_title); $wt->assign('urlencodedpage', rawurlencode(str_replace(" ", "_", $nscolon . $page_title))); $wt->assign('xtoolsbase', XTOOLS_BASE_WEB_DIR); $wt->assign('lang', $lang); $wt->assign('wiki', $wiki); $wt->assign('domain', $domain);