Skip to content

Commit

Permalink
Add some protection to the functions in the extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Hydriz committed Nov 11, 2012
1 parent f84cc28 commit 11804ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SpecialHostStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
*/

class SpecialHostStats extends SpecialPage {
function __construct() {
public function __construct() {
parent::__construct( 'HostStats' );
}

function execute( $par ) {
public function execute( $par ) {
global $wgHostStatsCommands;
$this->setHeaders();
$this->getOutput->setPageTitle( wfMessage( 'hoststats-title' )->escaped() );
Expand All @@ -24,7 +24,7 @@ function execute( $par ) {
$this->getOutput->addWikiText( $outpage );
}

function query( $query ) {
protected function query( $query ) {
$output = wfShellExec( $query );
return $output;
}
Expand Down

0 comments on commit 11804ce

Please sign in to comment.