Merge "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git] / maintenance / userOptions.inc
index 5d773d1..8ac7f91 100644 (file)
@@ -47,7 +47,7 @@ class UserOptions {
         */
        function __construct( $opts, $args ) {
                if ( !$this->checkOpts( $opts, $args ) ) {
-                       UserOptions::showUsageAndExit();
+                       self::showUsageAndExit();
                } else {
                        $this->mReady = $this->initializeOpts( $opts, $args );
                }
@@ -106,6 +106,7 @@ class UserOptions {
 
        /**
         * Dumb stuff to run a mode.
+        * @return bool
         */
        public function run() {
                if ( !$this->mReady ) {