bug fixes

This commit is contained in:
moodler
2006-01-19 07:26:45 +00:00
parent 12836b50a4
commit 6bd4ccef92
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ function migrate2utf8_wiki_name($recordid){
return false;
}
if (!$wiki = get_record('wiki','id',$recorvarchardid)) {
if (!$wiki = get_record('wiki','id',$recordid)) {
log_the_problem_somewhere();
return false;
}
@@ -130,4 +130,5 @@ function migrate2utf8_wiki_initialcontent($recordid){
/// And finally, just return the converted field
return $result;
}
?>
+1 -1
View File
@@ -96,7 +96,7 @@
migrate2utf8_wiki_pagename(RECORDID)
</PHP_FUNCTION>
</FIELD>
<FIELD name="wtype" method="NO_CONV" type="enum('teacher', 'group', 'student')" length="0" />
<FIELD name="wtype" method="NO_CONV" type="enum('teacher', 'group', 'student')" length="0" default="group" />
<FIELD name="initialcontent" method="PHP_FUNCTION" type="varchar" length="255">
<PHP_FUNCTION>
migrate2utf8_wiki_initialcontent(RECORDID)