Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Fix for ExpressionEngine File Extension in PHP4 (See related posts)

Find the following line (around 5388):

switch ($row['field_type'])


before that place this line:

$field_type = "";


So that switch should look like this:

$field_type = "";
switch ($row['field_type'])
{
    case 'text' :  $field_type = $LANG->line('text_input');
        break;
    case 'textarea' :  $field_type = $LANG->line('textarea');
        break;
    case 'select' :  $field_type = $LANG->line('select_list');
        break;
    case 'date' :  $field_type = $LANG->line('date_field');
        break;
    case 'rel' :  $field_type = $LANG->line('relationship');
        break;
} 


http://expressionengine.com/forums/viewthread/38843/#181791

You need to create an account or log in to post comments to this site.


Related Posts