Page MenuHomePhabricator

paths.patch

Authored By
bzimport
Nov 21 2014, 10:00 PM
Size
2 KB
Referenced Files
None
Subscribers
None

paths.patch

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);
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4127
Default Alt Text
paths.patch (2 KB)

Event Timeline