Skip to content

Instantly share code, notes, and snippets.

@gergoerdosi
Created June 8, 2011 14:07
Show Gist options
  • Save gergoerdosi/1014478 to your computer and use it in GitHub Desktop.
Save gergoerdosi/1014478 to your computer and use it in GitHub Desktop.
Patch to fix editor buttons
Index: code/administrator/components/com_default/templates/helpers/editor.php
===================================================================
--- code/administrator/components/com_default/templates/helpers/editor.php (revision 3453)
+++ code/administrator/components/com_default/templates/helpers/editor.php (working copy)
@@ -45,6 +45,6 @@
$editor = KFactory::get('lib.joomla.editor', array($config->editor));
$options = KConfig::toData($config->options);
- return $editor->display($config->name, $config->{$config->name}, $config->width, $config->height, $config->cols, $config->rows, $config->buttons, $options);
+ return $editor->display($config->name, $config->{$config->name}, $config->width, $config->height, $config->cols, $config->rows, KConfig::toData($config->buttons), $options);
}
}
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment