Reedy has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/91653


Change subject: Add description to createExtensionTables.php
......................................................................

Add description to createExtensionTables.php

Add GPL header

Change-Id: Ie6cbee47d6c780d725627b8b462b54bca4a7dec7
---
M createExtensionTables.php
1 file changed, 22 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMaintenance 
refs/changes/53/91653/1

diff --git a/createExtensionTables.php b/createExtensionTables.php
index becd38b..d88e6f1 100644
--- a/createExtensionTables.php
+++ b/createExtensionTables.php
@@ -1,5 +1,24 @@
 <?php
-
+/**
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @file
+ * @ingroup Maintenance
+ * @ingroup Wikimedia
+ */
 require_once( __DIR__ . '/WikimediaMaintenance.php' );
 
 /**
@@ -8,13 +27,14 @@
 class CreateExtensionTables extends WikimediaMaintenance {
        function __construct() {
                parent::__construct();
+               $this->mDescription = 'Creates database tables for specific 
MediaWiki Extensions';
                $this->addArg( 'extension', 'Which extension to install' );
        }
 
        function execute() {
                global $IP;
                $dbw = $this->getDB( DB_MASTER );
-               $extension = $this->getArg();
+               $extension = $this->getArg( 0 );
 
                $files = array();
                $path = '';

-- 
To view, visit https://gerrit.wikimedia.org/r/91653
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6cbee47d6c780d725627b8b462b54bca4a7dec7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to