r16546 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16545‎ | r16546 | r16547 >
Date:13:51, 18 September 2006
Author:mkroetzsch
Status:old
Tags:
Comment:
Remove spaces in custom datatype ids
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DT_Float.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DT_Float.php
@@ -373,7 +373,7 @@
374374 * values stored in the database (where the typeid is used).
375375 */
376376 function SMWLinearTypeHandler($typeid, $conversions = NULL) {
377 - $this->typeid = $typeid;
 377+ $this->typeid = str_replace(' ', '_', $typeid);
378378 if ($conversions !== NULL) {
379379 $this->parseConversionFactors($conversions);
380380 }

Status & tagging log