Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php |
— | — | @@ -28,8 +28,7 @@ |
29 | 29 | if ( '' == $smwgNamespace ) { |
30 | 30 | $resolver = SpecialPage::getTitleFor( 'URIResolver' ); |
31 | 31 | $smwgNamespace = $resolver->getFullURL() . '/'; |
32 | | - } |
33 | | - if ( $smwgNamespace[0] == '.' ) { |
| 32 | + } elseif ( $smwgNamespace[0] == '.' ) { |
34 | 33 | $resolver = SpecialPage::getTitleFor( 'URIResolver' ); |
35 | 34 | $smwgNamespace = "http://" . substr( $smwgNamespace, 1 ) . $resolver->getLocalURL() . '/'; |
36 | 35 | } |
— | — | @@ -37,8 +36,7 @@ |
38 | 37 | // The article name must be the last part of wiki URLs for proper OWL/RDF export: |
39 | 38 | SMWExporter::$m_ent_wikiurl = $wgServer . str_replace( '$1', '', $wgArticlePath ); |
40 | 39 | SMWExporter::$m_ent_wiki = $smwgNamespace; |
41 | | - SMWExporter::$m_ent_property = SMWExporter::$m_ent_wiki . |
42 | | - SMWExporter::encodeURI( urlencode( str_replace( ' ', '_', $wgContLang->getNsText( SMW_NS_PROPERTY ) . ':' ) ) ); |
| 40 | + SMWExporter::$m_ent_property = SMWExporter::$m_ent_wiki . SMWExporter::encodeURI( urlencode( str_replace( ' ', '_', $wgContLang->getNsText( SMW_NS_PROPERTY ) . ':' ) ) ); |
43 | 41 | $title = SpecialPage::getTitleFor( 'ExportRDF' ); |
44 | 42 | SMWExporter::$m_exporturl = '&wikiurl;' . $title->getPrefixedURL(); |
45 | 43 | } |