issue 910: Hide material writer if the material module isn't exists

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9920 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-12-08 06:26:44 +00:00
parent 58315df742
commit 77d1efccba
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@
<!--@end-->
{@$cookie_tool=explode(',', $_COOKIE['DrEditorToolbar'])}
{@$default_tool=explode(',', 'hx,txt,material,link,list,quote,img,movie,file,hr,index')}
{@$default_tool=explode(',', 'hx,txt,'.($material_exists?'material,':'').'link,list,quote,img,movie,file,hr,index');}
{@$external_components=array_keys($drComponentList)}
{@$enable_tool=array_unique(array_merge($cookie_tool, $default_tool, (array)$external_components))}
@ -479,7 +479,7 @@
</fieldset>
</div>
<div class="wArea mArea material">
<div class="wArea mArea material" cond="$material_exists">
<!-- class="mArea" | class="mArea open" -->
<fieldset>
<legend>{$lang->edit->materials}</legend>