Index: trunk/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_URI.php |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | $fragment = ( count( $parts ) == 2 ) ? $parts[1] : ''; |
112 | 112 | } else { |
113 | 113 | $query = ''; |
114 | | - $parts = explode( '?', $rest, 2 ); // try to split "hier-part#frag" |
| 114 | + $parts = explode( '?', $parts[0], 2 ); // try to split "hier-part#frag" |
115 | 115 | $hierpart = $parts[0]; |
116 | 116 | $fragment = ( count( $parts ) == 2 ) ? $parts[1] : ''; |
117 | 117 | } |