preload

OPENCART – Error en el filemanager

Posted by admin on Ago 18, 2010

Hay un error bastante grande en el admin del opencart.
Cuando vas a catalog – information e intentas subir una imagen desde el
ckeditor si te deja hacerlo el ingles, sin embargo para el español no.

La solución es esta:
archivo: admin/controller/common/filemanager
cambiar estas lineas:
if (isset($this->request->get['CKEditorFuncNum'])) {
$this->data['fckeditor'] = TRUE;
} else {
$this->data['fckeditor'] = FALSE;
}
por estas:
if (isset($this->request->get['CKEditorFuncNum'])) {
$this->data['fckeditor_function'] = $this->request->get['CKEditorFuncNum'] ;
$this->data['fckeditor'] = TRUE;
} else {
$this->data['fckeditor_function'] = 0;
$this->data['fckeditor'] = FALSE;
}

ir al archive admin/view/common/filemager.tpl:
y cambiar estas lineas:
window.opener.CKEDITOR.tools.callFunction(1, ‘<?php echo $directory; ?>’ + $(this).attr(’file’));

por esta:
window.opener.CKEDITOR.tools.callFunction(<?php echo $fckeditor_function; ?>, ‘<?php echo $directory; ?>’ + $(this).attr(’file’));

  • Leave a Reply

    * Required
    ** Your Email is never shared