Fix typo causing fatal error for Postgres in updaters.inc
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 5 Sep 2008 15:39:08 +0000 (15:39 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 5 Sep 2008 15:39:08 +0000 (15:39 +0000)
Reported by kreegee in #mediawiki.  I don't usually touch pgsql, but the problem and the fix both seem fairly obvious here.  :)  Also fixed another instance of the same typo lurking in some docs that I stumbled on.

docs/php-memcached/Documentation
maintenance/updaters.inc

index 4782807..c905605 100644 (file)
@@ -165,7 +165,7 @@ EXAMPLE:
 <?php
 require("MemCachedClient.inc.php");
 
-// set the servers, with the last one having an interger weight value of 3
+// set the servers, with the last one having an integer weight value of 3
 $options["servers"] = array("10.0.0.15:11000","10.0.0.16:11001",array("10.0.0.17:11002", 3));
 $options["debug"] = false;
 
index 568c2f1..63c00c0 100644 (file)
@@ -1483,7 +1483,7 @@ function do_postgres_updates() {
                array("revision",      "rev_len",              "INTEGER"),
                array("revision",      "rev_deleted",          "SMALLINT NOT NULL DEFAULT 0"),
                array("user_newtalk",  "user_last_timestamp",  "TIMESTAMPTZ"),
-               array("site_stats",    "ss_active_users",      "INTERGER DEFAULT '-1'"),
+               array("site_stats",    "ss_active_users",      "INTEGER DEFAULT '-1'"),
        );