Alter constructor of Article object to no longer pass-by-reference, and instead use...
authorRobert Leverington <roberthl@users.mediawiki.org>
Wed, 6 Feb 2008 20:06:47 +0000 (20:06 +0000)
committerRobert Leverington <roberthl@users.mediawiki.org>
Wed, 6 Feb 2008 20:06:47 +0000 (20:06 +0000)
includes/Article.php

index 7197a32..3f17c01 100644 (file)
@@ -41,7 +41,7 @@ class Article {
         * @param $title Reference to a Title object.
         * @param $oldId Integer revision ID, null to fetch from request, zero for current
         */
-       function __construct( &$title, $oldId = null ) {
+       function __construct( Title $title, $oldId = null ) {
                $this->mTitle =& $title;
                $this->mOldId = $oldId;
                $this->clear();