1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Tinymce now checks for templates in THEME folder.

This commit is contained in:
Cameron
2013-03-04 12:30:15 -08:00
parent 394d7dda82
commit 33325c0892

View File

@@ -230,7 +230,8 @@ class wysiwyg
$template = "public.xml";
}
$config = e107::getXml()->loadXMLfile(e_PLUGIN."tinymce/templates/".$template,true); //TODO System and theme folder checks for overrides.
$configPath = (is_readable(THEME."templates/tinymce/".$template)) ? THEME."templates/tinymce/".$template : e_PLUGIN."tinymce/templates/".$template;
$config = e107::getXml()->loadXMLfile($configPath, true);
//TODO Cache!