Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
58b6f612
Commit
58b6f612
authored
19 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
minor fixes needed for searchindex plugin
darcs-hash:20050904203437-7ad00-e0856739efaff3eb63b6ef0821ac318b4f84af9e.gz
parent
96b60e42
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
inc/search.php
+15
-0
15 additions, 0 deletions
inc/search.php
lib/plugins/admin.php
+2
-2
2 additions, 2 deletions
lib/plugins/admin.php
lib/scripts/tw-sack.js
+1
-1
1 addition, 1 deletion
lib/scripts/tw-sack.js
lib/tpl/default/design.css
+1
-1
1 addition, 1 deletion
lib/tpl/default/design.css
with
19 additions
and
4 deletions
inc/search.php
+
15
−
0
View file @
58b6f612
...
...
@@ -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
*
...
...
This diff is collapsed.
Click to expand it.
lib/plugins/admin.php
+
2
−
2
View file @
58b6f612
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
lib/scripts/tw-sack.js
+
1
−
1
View file @
58b6f612
...
...
@@ -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
);
}
}
};
...
...
This diff is collapsed.
Click to expand it.
lib/tpl/default/design.css
+
1
−
1
View file @
58b6f612
...
...
@@ -116,7 +116,7 @@ input.missing {
/* --------- buttons ------------------- */
input
.button
{
input
.button
,
button
.button
{
border
:
1px
solid
#8cacbb
;
color
:
Black
;
background-color
:
white
;
...
...
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