mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 12:05:56 +00: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…
x
Reference in New Issue
Block a user