Index: trunk/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_WikiPage.php |
— | — | @@ -39,10 +39,10 @@ |
40 | 40 | public function __construct( $dbkey, $namespace, $interwiki, $typeid = '_wpg' ) { |
41 | 41 | parent::__construct( $typeid ); |
42 | 42 | if ( !is_numeric( $namespace ) ) { |
43 | | - throw new SMWDataItemException( "Given namespace '$namespace' is not a number." ); |
| 43 | + throw new SMWDataItemException( "Given namespace '$namespace' is not an integer." ); |
44 | 44 | } |
45 | 45 | $this->m_dbkey = $dbkey; |
46 | | - $this->m_namespace = $namespace; |
| 46 | + $this->m_namespace = (int)$namespace; // really make this an integer |
47 | 47 | $this->m_interwiki = $interwiki; |
48 | 48 | } |
49 | 49 | |