Skip to content
Snippets Groups Projects
Commit 0d589a8f authored by alangrafu's avatar alangrafu
Browse files

Merge branch 'development'

parents 86494f74 2fa85a72
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,11 @@ class Exporter{
array_push($triples, $t);
$t['o'] = LS.'Application';
array_push($triples, $t);
if($conf['parentApp'] != NULL){
$t['p'] = OPMV.'wasDerivedFrom';
$t['o'] = $conf['parentApp'];
array_push($triples, $t);
}
$t['p'] = LS.'usedParameter';
$t['o'] = uniqid("_:b");
......
......@@ -58,7 +58,7 @@ class Importer{
//$arr = explode("lodspeakr/benegesserit", $this->basedir);
//$this->basedir = $arr[0];
$content .= "\$conf['basedir'] = \"$this->basedir\";\n";
$content .= "\$conf['parentApp'] = \"$app\";\n";
$pwd = getcwd();
$content .= "\$conf['home'] = \"$pwd/\";\n";
......@@ -78,7 +78,12 @@ class Importer{
foreach($appParams as $k => $v){
$content .= "\$conf['$k'] = \"$v\";\n";
}
$content .= "/*ATTENTION: By default this application is available to
* be exported and copied (its configuration)
* by others. If you do not want that,
* turn the next option as false
*/
\$conf['export'] = true;\n\n";
//Components
foreach($compArr as $v){
$component = $v['s'];
......
......@@ -41,7 +41,7 @@ $extension = Utils::getExtension($acceptContentType);
if($acceptContentType == NULL){
Utils::send406($uri);
}
if(file_exists($conf['static']['directory'].$_GET['q']) && sizeof($_GET['q'])>0){
if(sizeof($_GET['q'])>0 && file_exists($conf['static']['directory'].$_GET['q'])){
echo file_get_contents($conf['static']['directory'].$_GET['q']);
exit(0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment