X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/97c4ac59eed8b66b2e7f85d8ac325b063fb8a0ce..9a1ab4dd026d664f06c0e46a29796db5d28c7d45:/www/doap.php diff --git a/www/doap.php b/www/doap.php index db00df4..aede4cb 100644 --- a/www/doap.php +++ b/www/doap.php @@ -4,17 +4,20 @@ namespace phorkie; * Display DOAP of the paste. * Contains a machine-readable project description with Git URL. */ +$reqWritePermissions = false; require_once 'www-header.php'; $repo = new Repository(); $repo->loadFromRequest(); +$history = $repo->getHistory(); + header('Content-Type: application/rdf+xml'); render( 'doap', array( 'repo' => $repo, - 'date' => date('Y-m-d', end($repo->getHistory())->committerTime), + 'date' => date('Y-m-d', end($history)->committerTime), 'link' => Tools::fullUrl($repo->getLink('display')) ) );