r71935 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71934‎ | r71935 | r71936 >
Date:09:58, 30 August 2010
Author:mkroetzsch
Status:ok
Tags:
Comment:
minor code reformatting
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php
@@ -28,8 +28,7 @@
2929 if ( '' == $smwgNamespace ) {
3030 $resolver = SpecialPage::getTitleFor( 'URIResolver' );
3131 $smwgNamespace = $resolver->getFullURL() . '/';
32 - }
33 - if ( $smwgNamespace[0] == '.' ) {
 32+ } elseif ( $smwgNamespace[0] == '.' ) {
3433 $resolver = SpecialPage::getTitleFor( 'URIResolver' );
3534 $smwgNamespace = "http://" . substr( $smwgNamespace, 1 ) . $resolver->getLocalURL() . '/';
3635 }
@@ -37,8 +36,7 @@
3837 // The article name must be the last part of wiki URLs for proper OWL/RDF export:
3938 SMWExporter::$m_ent_wikiurl = $wgServer . str_replace( '$1', '', $wgArticlePath );
4039 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 ) . ':' ) ) );
4341 $title = SpecialPage::getTitleFor( 'ExportRDF' );
4442 SMWExporter::$m_exporturl = '&wikiurl;' . $title->getPrefixedURL();
4543 }

Status & tagging log