Skip to content

Commit

Permalink
Changed to ttl extension for Turtle
Browse files Browse the repository at this point in the history
  • Loading branch information
csarven committed Jul 21, 2013
1 parent 607eead commit 581997d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/LDP.php
Expand Up @@ -53,7 +53,7 @@ function get_resource($request)
{
$request_uri = $request->uri;

if (preg_match('~^(.+)\.(html|rdf|json|turtle|csv)$~', $request->full_path, $m)) {
if (preg_match('~^(.+)\.(html|rdf|json|ttl|csv)$~', $request->full_path, $m)) {
$base_path = $m[1];
$type = $m[2];

Expand Down Expand Up @@ -790,7 +790,7 @@ function getCurrentRequest()
{
$ePs = implode("|", array_reverse($this->getEntityPaths()));

$search = '#^(http://)('.$_SERVER['SERVER_NAME'].')('.$this->config['site']['path'].')('.$ePs.')?(.+)?\.(html|rdf|json|turtle)$#i';
$search = '#^(http://)('.$_SERVER['SERVER_NAME'].')('.$this->config['site']['path'].')('.$ePs.')?(.+)?\.(html|rdf|json|ttl)$#i';

if (preg_match($search, $this->requestURI, $matches)) {
$this->currentRequest = $matches;
Expand Down

0 comments on commit 581997d

Please sign in to comment.