Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
marcus-lodspeakr
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uib-ub
Spesialsamlingene
marcus-lodspeakr
Commits
ca82392b
Commit
ca82392b
authored
3 years ago
by
Stein Magne Bjorklund
Browse files
Options
Downloads
Patches
Plain Diff
Autoload Haanga library
parent
8c02c800
No related branches found
No related tags found
1 merge request
!16
Resolve "Introduce PSR-4 autoloading"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/Utils.php
+0
-2
0 additions, 2 deletions
classes/Utils.php
classes/modules/sparqlFilterModule.php
+1
-1
1 addition, 1 deletion
classes/modules/sparqlFilterModule.php
with
1 addition
and
3 deletions
classes/Utils.php
+
0
−
2
View file @
ca82392b
...
@@ -492,7 +492,6 @@ class Utils
...
@@ -492,7 +492,6 @@ class Utils
$data
=
array
();
$data
=
array
();
$strippedModelFile
=
str_replace
(
'endpoint.'
,
''
,
str_replace
(
'.query'
,
''
,
$modelFile
));
$strippedModelFile
=
str_replace
(
'endpoint.'
,
''
,
str_replace
(
'.query'
,
''
,
$modelFile
));
if
(
!
is_dir
(
$modelFile
))
{
if
(
!
is_dir
(
$modelFile
))
{
require_once
__DIR__
.
'/../vendor/ubbdst/haanga/lib/Haanga.php'
;
Haanga
::
configure
(
array
(
Haanga
::
configure
(
array
(
'cache_dir'
=>
$conf
[
'home'
]
.
'cache/'
,
'cache_dir'
=>
$conf
[
'home'
]
.
'cache/'
,
'autoescape'
=>
false
,
'autoescape'
=>
false
,
...
@@ -708,7 +707,6 @@ class Utils
...
@@ -708,7 +707,6 @@ class Utils
if
(
isset
(
$lodspk
[
'queryTimes'
]))
{
if
(
isset
(
$lodspk
[
'queryTimes'
]))
{
$lodspk
[
'queryTimes'
]
=
Convert
::
array_to_object
(
$lodspk
[
'queryTimes'
]);
$lodspk
[
'queryTimes'
]
=
Convert
::
array_to_object
(
$lodspk
[
'queryTimes'
]);
}
}
require_once
__DIR__
.
'/../vendor/ubbdst/haanga/lib/Haanga.php'
;
$viewAux
=
explode
(
"/"
,
$view
);
$viewAux
=
explode
(
"/"
,
$view
);
$viewFile
=
array_pop
(
$viewAux
);
$viewFile
=
array_pop
(
$viewAux
);
//$viewFile = $view;
//$viewFile = $view;
...
...
This diff is collapsed.
Click to expand it.
classes/modules/sparqlFilterModule.php
+
1
−
1
View file @
ca82392b
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
namespace
uib\ub\loadspeakr\modules
;
namespace
uib\ub\loadspeakr\modules
;
use
Haanga
;
use
uib\ub\loadspeakr\Convert
;
use
uib\ub\loadspeakr\Convert
;
use
uib\ub\loadspeakr\HTTPStatus
;
use
uib\ub\loadspeakr\HTTPStatus
;
use
uib\ub\loadspeakr\Logging
;
use
uib\ub\loadspeakr\Logging
;
...
@@ -46,7 +47,6 @@ class sparqlFilterModule extends abstractModule
...
@@ -46,7 +47,6 @@ class sparqlFilterModule extends abstractModule
$uri
=
$res
;
$uri
=
$res
;
$queries
=
$this
->
getQueries
();
$queries
=
$this
->
getQueries
();
$e
=
$endpoints
[
'local'
];
$e
=
$endpoints
[
'local'
];
require_once
__DIR__
.
'/../../vendor/ubbdst/haanga/lib/Haanga.php'
;
Haanga
::
configure
(
array
(
Haanga
::
configure
(
array
(
'cache_dir'
=>
$conf
[
'home'
]
.
'cache/'
,
'cache_dir'
=>
$conf
[
'home'
]
.
'cache/'
,
'autoescape'
=>
false
,
'autoescape'
=>
false
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment