mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-06-25 22:19:22 +02:00
BUG removing content method again, since it doesn't work reliably
This commit is contained in:
parent
f02303793d
commit
6ecfa61ca1
|
@ -802,19 +802,6 @@ class DMSDocument extends DataObject implements DMSDocumentInterface {
|
|||
$file->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Content For FullTextSearch module (using Solr) */
|
||||
function getContent() {
|
||||
if (class_exists('FileTextExtractor')) {
|
||||
// Determine which extractor can process this file.
|
||||
$extractor = FileTextExtractor::for_file($this->owner->FullPath);
|
||||
if (!$extractor) return null;
|
||||
|
||||
$text = $extractor->getContent($this->owner->FullPath);
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class DMSDocument_Controller extends Controller {
|
||||
|
|
Loading…
Reference in New Issue
Block a user