Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit a5d170d

Browse files
committed
fix
1 parent 8a46f0c commit a5d170d

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

action.php

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public function checkAction($action, $controller)
5252
// give back rdf
5353
$this->exportSioc();
5454
} elseif (($action->data === 'show' || $action->data === 'index') && $INFO['perm'] && !defined(
55-
'DOKU_MEDIADETAIL'
56-
) && ($INFO['exists'] || getDwUserInfo($INFO['id'], $this)) && !isHiddenPage($INFO['id'])) {
55+
'DOKU_MEDIADETAIL'
56+
) && ($INFO['exists'] || getDwUserInfo($INFO['id'], $this)) && !isHiddenPage($INFO['id'])) {
5757
if ($this->isRdfXmlRequest()) {
5858
// forward to rdfxml document if requested
5959
// print_r(headers_list()); die();
@@ -203,7 +203,8 @@ private function exportContainercontent($exporter)
203203

204204
// create container object
205205
$wikicontainer = new SIOCDokuWikiContainer(
206-
$ID, normalizeUri($exporter->siocURL('container', $ID))
206+
$ID,
207+
normalizeUri($exporter->siocURL('container', $ID))
207208
);
208209

209210
/* container is type=wiki */
@@ -281,7 +282,11 @@ private function exportUsercontent($exporter)
281282
//print_r($userinfo); die();
282283
// $id, $url, $userid, $name, $email
283284
$wikiuser = new SIOCDokuWikiUser(
284-
$ID, normalizeUri($exporter->siocURL('user', $ID)), $userinfo['user'], $userinfo['name'], $userinfo['mail']
285+
$ID,
286+
normalizeUri($exporter->siocURL('user', $ID)),
287+
$userinfo['user'],
288+
$userinfo['name'],
289+
$userinfo['mail']
285290
);
286291
/* TODO: avatar (using Gravatar) */ /* TODO: creator_of */
287292
// add user to exporter
@@ -414,7 +419,9 @@ private function getDokuUrl($url = null)
414419

415420
public function isRdfXmlRequest(): bool
416421
{
417-
if (!isset($_SERVER['HTTP_ACCEPT']) return false;
422+
if (!isset($_SERVER['HTTP_ACCEPT'])) {
423+
return false;
424+
}
418425

419426
// get accepted types
420427
$http_accept = trim($_SERVER['HTTP_ACCEPT']);
@@ -446,9 +453,9 @@ public function isRdfXmlRequest(): bool
446453
$accepted_order = array_keys($test_accept);
447454

448455
if ($accepted_order[0] === 'application/rdf+xml' || (array_key_exists(
449-
'application/rdf+xml',
450-
$test_accept
451-
) && $test_accept['application/rdf+xml'] === 'q=1.0')) {
456+
'application/rdf+xml',
457+
$test_accept
458+
) && $test_accept['application/rdf+xml'] === 'q=1.0')) {
452459
return true;
453460
}
454461
}
@@ -628,4 +635,3 @@ function normalizeUri($uri): string
628635
return implode('?', $parts);
629636
}
630637
}
631-

0 commit comments

Comments
 (0)