all converters are only used for fulltext

This commit is contained in:
Uwe Steinmann 2015-02-24 19:26:38 +01:00
parent 6898c2e229
commit c4feea2664
3 changed files with 7 additions and 3 deletions

View File

@ -162,7 +162,7 @@ if ($action == "saveSettings")
$settings->_maxExecutionTime = intval($_POST["maxExecutionTime"]);
// SETTINGS - ADVANCED - INDEX CMD
$settings->_converters = $_POST["converters"];
$settings->_converters['fulltext'] = $_POST["converters"];
// -------------------------------------------------------------------------
// save

View File

@ -65,7 +65,7 @@ else {
$folder = $dms->getFolder($folderid);
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'index'=>$index, 'recreate'=>(isset($_GET['create']) && $_GET['create']==1), 'folder'=>$folder, 'converters'=>$settings->_converters));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'index'=>$index, 'recreate'=>(isset($_GET['create']) && $_GET['create']==1), 'folder'=>$folder, 'converters'=>$settings->_converters['fulltext']));
if($view) {
$view->show();
exit;

View File

@ -545,7 +545,7 @@ if(!is_writeable($settings->_configFilePath)) {
<tr ><td><b> <?php printMLText("index_converters");?></b></td> </tr>
<?php
foreach($settings->_converters as $mimetype=>$cmd) {
foreach($settings->_converters['fulltext'] as $mimetype=>$cmd) {
?>
<tr title="<?php echo $mimetype;?>">
<td><?php echo $mimetype;?>:</td>
@ -554,6 +554,10 @@ if(!is_writeable($settings->_configFilePath)) {
<?php
}
?>
<tr title="">
<td><input type="text" name="converters_newmimetype" value="" />:</td>
<td><input type="text" name="converters_newcmd" value="" /></td>
</tr>
</table>
<?php $this->contentContainerEnd(); ?>
</div>