@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | if (function_exists('header_remove')) { |
| 62 | 62 | header_remove(); |
| 63 | 63 | } |
| 64 | - header('Location: ' . $location['href'], true, 303); |
|
| 64 | + header('Location: '.$location['href'], true, 303); |
|
| 65 | 65 | exit(); |
| 66 | 66 | } else { |
| 67 | 67 | // add meta link to html head |
@@ -101,12 +101,12 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | // Forward to URI with explicit type attribut |
| 103 | 103 | if (!isset($_GET['type'])) { |
| 104 | - header('Location:' . $_SERVER['REQUEST_URI'] . '&type=' . $sioc_type, true, 302); |
|
| 104 | + header('Location:'.$_SERVER['REQUEST_URI'].'&type='.$sioc_type, true, 302); |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | // Include SIOC libs |
| 108 | - require_once(__DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'sioc_inc.php'); |
|
| 109 | - require_once(__DIR__ . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'sioc_dokuwiki.php'); |
|
| 108 | + require_once(__DIR__.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'sioc_inc.php'); |
|
| 109 | + require_once(__DIR__.DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'sioc_dokuwiki.php'); |
|
| 110 | 110 | |
| 111 | 111 | // Create exporter |
| 112 | 112 | |
@@ -194,9 +194,9 @@ discard block |
||
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | $exporter->setParameters( |
| 197 | - 'Container: ' . $title, |
|
| 197 | + 'Container: '.$title, |
|
| 198 | 198 | getAbsUrl(), |
| 199 | - getAbsUrl() . 'doku.php?', |
|
| 199 | + getAbsUrl().'doku.php?', |
|
| 200 | 200 | 'utf-8', |
| 201 | 201 | $this->agentlink |
| 202 | 202 | ); |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | // search next level entries (posts, sub containers) in container |
| 223 | - require_once(DOKU_INC . 'inc/search.php'); |
|
| 223 | + require_once(DOKU_INC.'inc/search.php'); |
|
| 224 | 224 | $dir = utf8_encodeFN(str_replace(':', '/', $ID)); |
| 225 | 225 | $entries = array(); |
| 226 | 226 | $posts = array(); |
@@ -271,9 +271,9 @@ discard block |
||
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | $exporter->setParameters( |
| 274 | - 'Account: ' . $userinfo['name'], |
|
| 274 | + 'Account: '.$userinfo['name'], |
|
| 275 | 275 | getAbsUrl(), |
| 276 | - getAbsUrl() . 'doku.php?', |
|
| 276 | + getAbsUrl().'doku.php?', |
|
| 277 | 277 | 'utf-8', |
| 278 | 278 | $this->agentlink |
| 279 | 279 | ); |
@@ -296,25 +296,25 @@ discard block |
||
| 296 | 296 | global $ID, $INFO, $REV, $conf; |
| 297 | 297 | |
| 298 | 298 | $exporter->setParameters( |
| 299 | - $INFO['meta']['title'] . ($REV ? ' (rev ' . $REV . ')' : ''), |
|
| 299 | + $INFO['meta']['title'].($REV ? ' (rev '.$REV.')' : ''), |
|
| 300 | 300 | $this->getDokuUrl(), |
| 301 | - $this->getDokuUrl() . 'doku.php?', |
|
| 301 | + $this->getDokuUrl().'doku.php?', |
|
| 302 | 302 | 'utf-8', |
| 303 | 303 | $this->agentlink |
| 304 | 304 | ); |
| 305 | 305 | |
| 306 | 306 | // create user object |
| 307 | - $dwuserpage_id = cleanID($this->getConf('userns')) . ($conf['useslash'] ? '/' : ':') . $INFO['editor']; |
|
| 307 | + $dwuserpage_id = cleanID($this->getConf('userns')).($conf['useslash'] ? '/' : ':').$INFO['editor']; |
|
| 308 | 308 | // create wiki page object |
| 309 | 309 | $wikipage = new SIOCDokuWikiArticle( |
| 310 | 310 | $ID, // id |
| 311 | 311 | normalizeUri( |
| 312 | 312 | $exporter->siocURL( |
| 313 | 313 | 'post', |
| 314 | - $ID . ($REV ? $exporter->_urlseparator . 'rev' . $exporter->_urlequal . $REV : '') |
|
| 314 | + $ID.($REV ? $exporter->_urlseparator.'rev'.$exporter->_urlequal.$REV : '') |
|
| 315 | 315 | ) |
| 316 | 316 | ), // url |
| 317 | - $INFO['meta']['title'] . ($REV ? ' (rev ' . $REV . ')' : ''), // subject |
|
| 317 | + $INFO['meta']['title'].($REV ? ' (rev '.$REV.')' : ''), // subject |
|
| 318 | 318 | rawWiki($ID, $REV) // body (content) |
| 319 | 319 | ); |
| 320 | 320 | /* encoded content */ |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | } |
| 330 | 330 | /* creator/modifier */ |
| 331 | 331 | if ($INFO['editor'] && $this->getConf('userns')) { |
| 332 | - $wikipage->addCreator(array('foaf:maker' => '#' . $INFO['editor'], 'sioc:modifier' => $dwuserpage_id)); |
|
| 332 | + $wikipage->addCreator(array('foaf:maker' => '#'.$INFO['editor'], 'sioc:modifier' => $dwuserpage_id)); |
|
| 333 | 333 | } |
| 334 | 334 | /* is creator */ |
| 335 | 335 | if (isset($INFO['meta']['date']['created'])) { |
@@ -341,16 +341,16 @@ discard block |
||
| 341 | 341 | // contributors - only for last revision b/c of wrong meta data for older revisions |
| 342 | 342 | if (!$REV && $this->getConf('userns') && isset($INFO['meta']['contributor'])) { |
| 343 | 343 | $cont_temp = array(); |
| 344 | - $cont_ns = $this->getConf('userns') . ($conf['useslash'] ? '/' : ':'); |
|
| 344 | + $cont_ns = $this->getConf('userns').($conf['useslash'] ? '/' : ':'); |
|
| 345 | 345 | foreach ($INFO['meta']['contributor'] as $cont_id => $cont_name) { |
| 346 | - $cont_temp[$cont_ns . $cont_id] = $cont_name; |
|
| 346 | + $cont_temp[$cont_ns.$cont_id] = $cont_name; |
|
| 347 | 347 | } |
| 348 | 348 | $wikipage->addContributors($cont_temp); |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | // backlinks - only for last revision |
| 352 | 352 | if (!$REV) { |
| 353 | - require_once(DOKU_INC . 'inc/fulltext.php'); |
|
| 353 | + require_once(DOKU_INC.'inc/fulltext.php'); |
|
| 354 | 354 | $backlinks = ft_backlinks($ID); |
| 355 | 355 | if (count($backlinks) > 0) { |
| 356 | 356 | $wikipage->addBacklinks($backlinks); |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | switch ($sioc_type) { |
| 496 | 496 | case 'container': |
| 497 | 497 | $title = htmlentities( |
| 498 | - "Container '" . ($INFO['meta']['title'] ?? $ID) . "' (SIOC document as RDF/XML)" |
|
| 498 | + "Container '".($INFO['meta']['title'] ?? $ID)."' (SIOC document as RDF/XML)" |
|
| 499 | 499 | ); |
| 500 | 500 | $queryAttr = array('type' => 'container'); |
| 501 | 501 | break; |
@@ -509,7 +509,7 @@ discard block |
||
| 509 | 509 | default: |
| 510 | 510 | $title = htmlentities($INFO['meta']['title']); |
| 511 | 511 | $queryAttr = array('type' => 'post'); |
| 512 | - if (isset($_GET['rev']) && $_GET['rev'] === (int)$_GET['rev']) { |
|
| 512 | + if (isset($_GET['rev']) && $_GET['rev'] === (int) $_GET['rev']) { |
|
| 513 | 513 | $queryAttr['rev'] = $_GET['rev']; |
| 514 | 514 | } |
| 515 | 515 | break; |
@@ -581,7 +581,7 @@ discard block |
||
| 581 | 581 | } |
| 582 | 582 | |
| 583 | 583 | // get user id |
| 584 | - $userid = str_replace(cleanID($pobj->getConf('userns')) . ($conf['useslash'] ? '/' : ':'), '', $id); |
|
| 584 | + $userid = str_replace(cleanID($pobj->getConf('userns')).($conf['useslash'] ? '/' : ':'), '', $id); |
|
| 585 | 585 | |
| 586 | 586 | if ($info = $auth->getUserData($userid)) { |
| 587 | 587 | if ($key) { |