{
global $wgOut, $wgUser, $wgLang;
global $wgDeferredUpdateList, $wgMessageCache;
- global $wgUseSquid, $wgInternalServer;
+ global $wgUseSquid;
$fname = "MovePageForm::doSubmit";
$this->ot = Title::newFromText( $this->oldTitle );
/* this needs to be done after LinksUpdate */
$urlArr = Array(
# purge new title
- $wgInternalServer.$this->nt->getLocalURL(),
+ $this->nt->getInternalURL(),
# purge old title
- $wgInternalServer.$this->ot->getLocalURL(),
+ $this->ot->getInternalURL(),
);
wfPurgeSquidServers($urlArr);
# purge pages linking to new title
function doUpdate()
{
if (count( $this->urlArr ) == 0) { // newly created Article
- global $wgInternalServer;
/* prepare the list of urls to purge */
$id= $this->title->getArticleID();
$sql = "SELECT l_from FROM links WHERE l_to={$id}" ;
while ( $BL = wfFetchObject ( $res ) )
{
$t = Title::newFromDBkey( $BL->l_from) ;
- $this->urlArr[] = $wgInternalServer.$t->getLocalURL() ;
+ $this->urlArr[] = $t->getInternalURL() ;
}
wfFreeResult ( $res ) ;