http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73457

Revision: 73457
Author:   jeroendedauw
Date:     2010-09-21 12:08:04 +0000 (Tue, 21 Sep 2010)

Log Message:
-----------
Follow up to r73379

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
    trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2Table.php

Modified: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php       
2010-09-21 11:16:48 UTC (rev 73456)
+++ trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php       
2010-09-21 12:08:04 UTC (rev 73457)
@@ -1911,7 +1911,7 @@
                        }
                }
 
-               $propertykey = ( $property->isUserDefined() ) ? 
$property->getDBkey():$property->getPropertyId();
+               $propertykey = ( $property->isUserDefined() ) ? 
$property->getDBkey() : $property->getPropertyId();
 
                if ( array_key_exists( $propertykey, self::$fixed_prop_tables ) 
) {
                        $signature = self::getTypeSignature( 
$property->getPropertyTypeID() );

Modified: 
trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2Table.php
===================================================================
--- trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2Table.php  
2010-09-21 11:16:48 UTC (rev 73456)
+++ trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2Table.php  
2010-09-21 12:08:04 UTC (rev 73457)
@@ -75,13 +75,13 @@
         * Constructor.
         * 
         * @param string $name
-        * @param mixed $objectFields Array of string or a single string
+        * @param array $objectFields Associative array
         * @param mixed $indexes Array of string or a single string
         * @param mixed $fixedProperty string or false
         */
-       public function __construct( $name, $objectFields, $indexes = array(), 
$fixedProperty = false ) {
+       public function __construct( $name, array $objectFields, $indexes = 
array(), $fixedProperty = false ) {
                $this->name = $name;
-               $this->objectfields = (array)$objectFields;
+               $this->objectfields = $objectFields;
                $this->fixedproperty = $fixedProperty;
                $this->indexes = (array) $indexes;
        }



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

Reply via email to