From: Tim Starling Date: Mon, 8 Mar 2004 09:43:36 +0000 (+0000) Subject: code formatting X-Git-Tag: 1.3.0beta1~833 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=2a029880ece7609271c6d1e55889ff751685bbec;p=lhc%2Fweb%2Fwiklou.git code formatting --- diff --git a/includes/SquidUpdate.php b/includes/SquidUpdate.php index 651478c38a..743eea3c38 100644 --- a/includes/SquidUpdate.php +++ b/includes/SquidUpdate.php @@ -3,32 +3,32 @@ class SquidUpdate { - function SquidUpdate( $title, $urlArr = Array() ) - { - $this->title = $title; - $this->urlArr = $urlArr; - } + function SquidUpdate( $title, $urlArr = Array() ) + { + $this->title = $title; + $this->urlArr = $urlArr; + } - 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}" ; - $res = wfQuery ( $sql, DB_READ ) ; - while ( $BL = wfFetchObject ( $res ) ) - { - $t = Title::newFromDBkey( $BL->l_from) ; - $this->urlArr[] = $wgInternalServer.$t->getLocalURL() ; - } - wfFreeResult ( $res ) ; + 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}" ; + $res = wfQuery ( $sql, DB_READ ) ; + while ( $BL = wfFetchObject ( $res ) ) + { + $t = Title::newFromDBkey( $BL->l_from) ; + $this->urlArr[] = $wgInternalServer.$t->getLocalURL() ; + } + wfFreeResult ( $res ) ; - } + } - wfPurgeSquidServers($this->urlArr); -} + wfPurgeSquidServers($this->urlArr); + } } ?>