--- loncom/interface/loncreatecourse.pm	2010/05/28 17:09:06	1.140
+++ loncom/interface/loncreatecourse.pm	2010/09/23 21:25:43	1.145
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Create a course
 #
-# $Id: loncreatecourse.pm,v 1.140 2010/05/28 17:09:06 bisitz Exp $
+# $Id: loncreatecourse.pm,v 1.145 2010/09/23 21:25:43 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -299,7 +299,7 @@ END
              .&Apache::lonhtmlcommon::row_closure()
 
              .&Apache::lonhtmlcommon::row_title($lt{'ctit'})
-             .'<input type="text" size="50" name="title" />'
+             .'<input type="text" size="80" name="title" />'
              .&Apache::lonhtmlcommon::row_closure()
 
              .&Apache::lonhtmlcommon::row_title($lt{'chsr'})
@@ -689,7 +689,7 @@ sub create_course {
 		      '<p><a href="/adm/managekeys?cid='.$crsudom.'_'.$crsunum.'">'.&mt('Manage Access Keys').'</a></p>');
 	}
         # Flush the course logs so reverse user roles immediately updated
-	&Apache::lonnet::flushcourselogs();
+	$r->register_cleanup(\&Apache::lonnet::flushcourselogs);
 	$r->print('<p>'.&mt('Roles will be active at next login').'.</p>');
     }
     $r->print('<p><a href="/adm/createcourse?phase='.lc($crstype).'one">'.
@@ -748,11 +748,11 @@ sub print_intro_page {
                linktitle => 'Display course and community creation requests submitted by authorized users, held pending approval by a Domain Coordinator.'
            },
            {
-               linktext => 'Display official course requests',
+               linktext => 'View pending official course requests',
                url => '/adm/createcourse?phase=pendingdisplay',
                permission => $show_all_choices,
                #help => '',
-               icon => '',
+               icon => 'edit-find.png',
                alttext => '',
                linktitle => 'Display official course requests submitted by authorized users, held pending validation of instructor status.'
            },
@@ -932,7 +932,7 @@ sub print_creation_logs {
     if ($numtitles) {
         if (($curr{'type'} eq 'official') || ($curr{'type'} eq 'unofficial')) {
             $instcodefilter = &instcode_srchstr($dom,$numtitles);
-                &Apache::courseclassifier::instcode_search_str($dom,$numtitles);
+                &Apache::courseclassifier::instcode_search_str($dom,$numtitles,\@codetitles);
             if ($curr{'type'} eq 'official') {
                 $regexpok = 1;
             } else {