Index: trunk/phase3/includes/RawPage.php |
— | — | @@ -82,6 +82,10 @@ |
83 | 83 | if( $ctype == '' ) { |
84 | 84 | $ctype = 'text/css'; |
85 | 85 | } |
| 86 | + } elseif( $gen == 'js' ) { |
| 87 | + $this->mGen = $gen; |
| 88 | + if( is_null( $smaxage ) ) $smaxage = $wgSquidMaxage; |
| 89 | + if($ctype == '') $ctype = $wgJsMimeType; |
86 | 90 | } else { |
87 | 91 | $this->mGen = false; |
88 | 92 | } |
— | — | @@ -170,6 +174,8 @@ |
171 | 175 | $sk->initPage( $wgOut ); |
172 | 176 | if( $this->mGen == 'css' ) { |
173 | 177 | return $sk->generateUserStylesheet(); |
| 178 | + } else if( $this->mGen == 'js' ) { |
| 179 | + return $sk->generateUserJs(); |
174 | 180 | } |
175 | 181 | } else { |
176 | 182 | return $this->getArticleText(); |