Index: specials/SF_CreateForm.php
===================================================================
--- specials/SF_CreateForm.php	(revision 25679)
+++ specials/SF_CreateForm.php	(working copy)
@@ -15,7 +15,7 @@
 SpecialPage::addPage( new SpecialPage('CreateForm','',true,'doSpecialCreateForm',false) );
 
 function doSpecialCreateForm() {
-  global $wgOut, $wgRequest, $wgUser;
+  global $wgOut, $wgRequest, $wgUser, $sfgScriptPath;
   $db = wfGetDB( DB_SLAVE );
 
   # get the names of all templates on this site
@@ -175,7 +175,7 @@
     'rel' => 'stylesheet',
     'type' => 'text/css',
     'media' => "screen, projection",
-    'href' => "/w/extensions/SemanticForms/skins/SF_main.css"
+    'href' => $sfgScriptPath."/skins/SF_main.css"
   ));
   $wgOut->addHTML($text);
 }
Index: specials/SF_CreateProperty.php
===================================================================
--- specials/SF_CreateProperty.php	(revision 25679)
+++ specials/SF_CreateProperty.php	(working copy)
@@ -44,7 +44,7 @@
 }
 
 function doSpecialCreateProperty() {
-  global $wgOut, $wgRequest;
+  global $wgOut, $wgRequest, $sfgScriptPath;
   global $smwgContLang;
 
   # cycle through the query values, setting the appropriate local variables
@@ -140,7 +140,7 @@
     'rel' => 'stylesheet',
     'type' => 'text/css',
     'media' => "screen, projection",
-    'href' => "/w/extensions/SemanticForms/skins/SF_main.css"
+    'href' => $sfgScriptPath."/skins/SF_main.css"
   ));
   $wgOut->addScript('<script type="text/javascript">' . $javascript_text . '</script>');
   $wgOut->addHTML($text);
Index: specials/SF_CreateTemplate.php
===================================================================
--- specials/SF_CreateTemplate.php	(revision 25679)
+++ specials/SF_CreateTemplate.php	(working copy)
@@ -84,7 +84,7 @@
 }
 
 function doSpecialCreateTemplate() {
-  global $wgOut, $wgRequest, $wgUser;
+  global $wgOut, $wgRequest, $wgUser, $sfgScriptPath;
 
   $all_properties = getSemanticProperties();
 
@@ -166,7 +166,7 @@
     'rel' => 'stylesheet',
     'type' => 'text/css',
     'media' => "screen, projection",
-    'href' => "/w/extensions/SemanticForms/skins/SF_main.css"
+    'href' => $sfgScriptPath."/skins/SF_main.css"
   ));
   $wgOut->addHTML($text);
 }
