From f0d625a467243a7de10bb2a174dc6cfc576eeafd Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 16 Jul 2004 17:23:56 +0000 Subject: [PATCH] reorder params for css/js to end in 's' to avoid being counted as page in webalizer --- includes/SkinPHPTal.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index f987dc3c88..5479d20d7e 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -148,7 +148,7 @@ $tpl->setRef( "userjs", $this->userjs); $tpl->setRef( "userjsprev", $this->userjsprev); if($this->loggedin) { - $tpl->set( "jsvarurl", $this->makeUrl('-','action=raw&gen=js&smaxage=0') ); + $tpl->set( "jsvarurl", $this->makeUrl('-','action=raw&smaxage=0&gen=js') ); } else { $tpl->set( "jsvarurl", $this->makeUrl('-','action=raw&gen=js') ); } @@ -538,12 +538,12 @@ if( $this->loggedin ) { if($wgTitle->isCssSubpage() and $action == 'submit' and $wgTitle->userCanEditCssJsSubpage()) { # generated css - $this->usercss = '@import "'.$this->makeUrl('-','action=raw&gen=css&smaxage=0&maxage=0').'";'."\n"; + $this->usercss = '@import "'.$this->makeUrl('-','action=raw&smaxage=0&maxage=0&gen=css').'";'."\n"; // css preview $this->usercss .= $wgRequest->getText('wpTextbox1'); } else { # generated css - $this->usercss .= '@import "'.$this->makeUrl('-','action=raw&gen=css&smaxage=0').'";'."\n"; + $this->usercss .= '@import "'.$this->makeUrl('-','action=raw&smaxage=0&gen=css').'";'."\n"; # import user stylesheet $this->usercss .= '@import "'. $this->makeUrl($this->userpage.'/'.$this->skinname.'.css', 'action=raw&ctype=text/css').'";'."\n"; @@ -552,7 +552,7 @@ # XXX: additional security check/prompt? $this->userjsprev = $wgRequest->getText('wpTextbox1'); } else { - $this->userjs = $this->makeUrl($this->userpage.'/'.$this->skinname.'.js', 'action=raw&ctype=text/javascript'); + $this->userjs = $this->makeUrl($this->userpage.'/'.$this->skinname.'.js', 'action=raw&ctype=text/javascript&dontcountme=s'); } } } -- 2.20.1