Skip to content
Snippets Groups Projects
Commit 58b6f612 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

minor fixes needed for searchindex plugin

darcs-hash:20050904203437-7ad00-e0856739efaff3eb63b6ef0821ac318b4f84af9e.gz
parent 96b60e42
No related branches found
No related tags found
No related merge requests found
......@@ -230,6 +230,21 @@ function search_pagename(&$data,$base,$file,$type,$lvl,$opts){
return true;
}
/**
* Just lists all documents
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
function search_allpages(&$data,$base,$file,$type,$lvl,$opts){
//we do nothing with directories
if($type == 'd') return true;
//only search txt files
if(!preg_match('#\.txt$#',$file)) return true;
$data[]['id'] = pathID($file);
return true;
}
/**
* Search for backlinks to a given page
*
......
......@@ -78,9 +78,9 @@ class DokuWiki_Admin_Plugin {
$file = DOKU_PLUGIN.$plugin.'/lang/'.$conf['lang'].'/'.$id.'.txt';
if(!@file_exists($file)){
//fall back to english
$file = DOKU_PLUGIN.$plugin.'inc/lang/en/'.$id.'.txt';
$file = DOKU_PLUGIN.$plugin.'/lang/en/'.$id.'.txt';
}
return $file;
return $file;
}
// use this function to access plugin language strings
......
......@@ -94,7 +94,6 @@ function sack(file){
} catch (e) {}
}
this.xmlhttp.send(this.URLString);
this.xmlhttp.onreadystatechange = function() {
switch (self.xmlhttp.readyState){
case 1:
......@@ -126,6 +125,7 @@ function sack(file){
break;
}
};
this.xmlhttp.send(this.URLString);
}
}
};
......
......@@ -116,7 +116,7 @@ input.missing {
/* --------- buttons ------------------- */
input.button {
input.button, button.button{
border: 1px solid #8cacbb;
color: Black;
background-color: white;
......
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