summaryrefslogtreecommitdiff
path: root/lib/exe/mediamanager.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-02-23 21:52:54 +0100
committerAndreas Gohr <andi@splitbrain.org>2008-02-23 21:52:54 +0100
commita05e297acbd41dc059369b143e2cadf281a581a1 (patch)
treeea599c6c71513567e9dddc23e6ac3be21888b22f /lib/exe/mediamanager.php
parentb5742ced86ad0a0e0448556d81e6c97c12ae9d9f (diff)
downloadrpg-a05e297acbd41dc059369b143e2cadf281a581a1.tar.gz
rpg-a05e297acbd41dc059369b143e2cadf281a581a1.tar.bz2
use fulltext index to search for used media files FS#1336 FS#1275
This changes how DokuWiki looks for reference toa media file which is about to deleted. Instead of doing a full grep through all pages it now uses the fulltext index first, then does an exact match on the found pages. This speeds up the search significantly on larger wikis. However the fulltext search limits now apply: images with names shorter than 3 charcters may not be found. This needs extensive testing! darcs-hash:20080223205254-7ad00-486de0a4125d51b4e7999827f710d1d9de8bc60d.gz
Diffstat (limited to 'lib/exe/mediamanager.php')
-rw-r--r--lib/exe/mediamanager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php
index 7e71f800e..32849be62 100644
--- a/lib/exe/mediamanager.php
+++ b/lib/exe/mediamanager.php
@@ -18,6 +18,7 @@
// get namespace to display (either direct or from deletion order)
if($_REQUEST['delete']){
$DEL = cleanID($_REQUEST['delete']);
+ $IMG = $DEL;
$NS = getNS($DEL);
}elseif($_REQUEST['edit']){
$IMG = cleanID($_REQUEST['edit']);