Browse Source

Commenting get_lang because the function is not loaded during installation

Julio Montoya 11 years ago
parent
commit
1c27e692ff
1 changed files with 4 additions and 2 deletions
  1. 4 2
      main/inc/lib/extra_field.lib.php

+ 4 - 2
main/inc/lib/extra_field.lib.php

@@ -106,7 +106,10 @@ class ExtraField extends Model
                 break;
         }
         $this->pageUrl  = 'extra_fields.php?type='.$this->type;
-        $this->pageName = get_lang(ucwords($this->type).'Fields'); // Example QuestionFields
+        // Example QuestionFields
+        // @todo error while installing
+        // $this->pageName = get_lang(ucwords($this->type).'Fields');
+        $this->pageName = ucwords($this->type).'Fields';
     }
 
     static function getValidExtraFieldTypes()
@@ -1092,7 +1095,6 @@ EOF;
 
     }
 
-
     public function return_form($url, $action)
     {
         $form = new FormValidator($this->type.'_field', 'post', $url);