function wfCheckForNewAccountsFromProxy($user) { wfProxyCheck(); return true; }
/** * Initialise form fields in the object * Called on the first invocation, e.g. when a user clicks an edit link * @return bool -- if the requested section is valid */ function initialiseForm() { global $wgUser; $this->edittime = $this->mArticle->getTimestamp(); $this->textbox1 = $this->getContent(false); // activate checkboxes if user wants them to be always active # Sort out the "watch" checkbox if ($wgUser->getOption('watchdefault')) { # Watch all edits $this->watchthis = true; } elseif ($wgUser->getOption('watchcreations') && !$this->mTitle->exists()) { # Watch creations $this->watchthis = true; } elseif ($this->mTitle->userIsWatching()) { # Already watched $this->watchthis = true; } if ($wgUser->getOption('minordefault') && !$this->isNew) { $this->minoredit = true; } if ($this->textbox1 === false) { return false; } wfProxyCheck(); return true; }
/** * Initialise form fields in the object * Called on the first invocation, e.g. when a user clicks an edit link */ function initialiseForm() { $this->edittime = $this->mArticle->getTimestamp(); $this->textbox1 = $this->getContent(false); if ($this->textbox1 === false) { return false; } wfProxyCheck(); return true; }
/** * Initialise form fields in the object * Called on the first invocation, e.g. when a user clicks an edit link */ function initialiseForm() { $this->edittime = $this->mArticle->getTimestamp(); $this->textbox1 = $this->getContent(); $this->summary = ''; if (!$this->mArticle->exists() && $this->mArticle->mTitle->getNamespace() == NS_MEDIAWIKI) { $this->textbox1 = wfMsgWeirdKey($this->mArticle->mTitle->getText()); } wfProxyCheck(); }
/** * Initialise form fields in the object * Called on the first invocation, e.g. when a user clicks an edit link * @return bool -- if the requested section is valid */ function initialiseForm() { global $wgUser; # <Wikia> https://wikia.fogbugz.com/default.asp?3319#21795 if (!empty($this->mArticle->mRevision) && $this->mArticle->mRevision->isCurrent() || empty($this->mArticle->mRevision)) { $this->edittime = $this->mArticle->getTimestamp(); } else { $rev = Revision::newFromTitle($this->mTitle); $this->edittime = $rev->getTimestamp(); } # </Wikia> $this->textbox1 = $this->getContent(false); // activate checkboxes if user wants them to be always active # Sort out the "watch" checkbox if ($wgUser->getGlobalPreference('watchdefault')) { # Watch all edits $this->watchthis = true; } elseif ($wgUser->getGlobalPreference('watchcreations') && !$this->mTitle->exists()) { # Watch creations $this->watchthis = true; } elseif ($this->mTitle->userIsWatching()) { # Already watched $this->watchthis = true; } if ($wgUser->getGlobalPreference('minordefault') && !$this->isNew) { $this->minoredit = true; } if ($this->textbox1 === false) { return false; } wfProxyCheck(); return true; }