Skip to content
Snippets Groups Projects
Commit 00fea827 authored by Øyvind gjesdal's avatar Øyvind gjesdal
Browse files

endringer fra master branch gjennomgått (ikke relatert til php7)

parent 8b2d9e0d
No related branches found
No related tags found
1 merge request!1Resolve "Ta inn endringer fra skeivt arkiv lodspeakr"
......@@ -123,7 +123,7 @@ class TypeModule extends abstractModule{
//Get the firstResults type available
//$typesAndValues = array('rdfs:Resource' => -1);
//$typesAndValues = array('rdfs__Resource' => -1);
$typesAndValues = array('bibo:Document' => -1);
//$typesAndValues = array('bibo:Document' => -1);
$typesAndValues = array('bibo__Document' => -1);
if(!isset($conf['disableComponents']) || $conf['disableComponents'] != true){
foreach($t as $v){
......
......@@ -4,9 +4,7 @@ class Haanga_Extension_Filter_Decodedescription
{
static function main($text) {
$allowed_tags ="<u><b><i><strong><br><p><ul><ol><li><iframe><a><img>";
$allowed_tags_regex= preg_replace('/\|$/','',preg_replace('/<([^>^\s]+)>/','$1|',$allowed_tags));
$allowed_tags_regex_strip_not_name = "/<(". $allowed_tags_regex . ")\s+[^>]+>/";
$description= strip_tags(html_entity_decode(htmlspecialchars(html_entity_decode($text,ENT_QUOTES,"UTF-8"),ENT_QUOTES,"UTF-8"),ENT_QUOTES,"UTF-8"),$allowed_tags);
preg_match("/<p(\s[^>]*)?>/i",$description,$matches);
......
......@@ -34,6 +34,9 @@ class Haanga_Extension_Filter_Timeknot{
case 2:
$variable['key'] = 'img';
break;
case 3:
$variable['key'] = 'series';
break;
}
$fieldCounter++;
array_push($varList, $variable);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment