Index: mod/elluminatelive/view.php
===================================================================
RCS file: /cvsroot/moodle/contrib/patches/elluminate_elm/mod/elluminatelive/view.php,v
retrieving revision 1.16
diff -u -r1.16 view.php
--- mod/elluminatelive/view.php	5 Jun 2009 20:12:38 -0000	1.16
+++ mod/elluminatelive/view.php	1 Jul 2009 08:26:41 -0000
@@ -443,6 +443,10 @@
                 continue;
             }
 
+        /// Is the recording of 0 size?
+            if (!$canmanageanyrecordings && $recording->size == 0) {
+                continue;
+            }
         /// If the activity is using separate groups and this user isn't a member of the specific
         /// group the recording is for, has this recording been made available to them?
             if ($groupmode == VISIBLEGROUPS && (
@@ -454,7 +458,7 @@
 
             $link = '<a href="' . $CFG->wwwroot . '/mod/elluminatelive/loadrecording.php?id=' .
                     $recording->id . '" target="new">' . get_string('playrecording', 'elluminatelive') .
-                    '</a> - ' . userdate($recording->created);
+                    '</a> - ' . userdate($recording->created) . ' ' . display_size($recording->size);
 
         /// Include the recording description, if not empty.
             if (!empty($recording->description)) {
Index: mod/elluminatelive/lib.php
===================================================================
RCS file: /cvsroot/moodle/contrib/patches/elluminate_elm/mod/elluminatelive/lib.php,v
retrieving revision 1.13
diff -u -r1.13 lib.php
--- mod/elluminatelive/lib.php	5 Jun 2009 20:12:38 -0000	1.13
+++ mod/elluminatelive/lib.php	1 Jul 2009 08:26:41 -0000
@@ -3065,6 +3065,7 @@
                 $recording->meetingid   = $entry->RecordingAdapter->MeetingRoomId;
                 $recording->roomname    = $entry->RecordingAdapter->RoomName;
                 $recording->facilitator = $entry->RecordingAdapter->Facilitator;
+                $recording->size        = $entry->RecordingAdapter->Size;
                 $recording->created     = substr($entry->RecordingAdapter->CreationDate, 0, 10);
 
                 $recordings[] = $recording;
@@ -3132,6 +3133,7 @@
                     $entry->name        = $meeting->name;
                     $entry->recordingid = $recording->id;
                     $entry->created     = $recording->created;
+                    $entry->size        = $recording->size;
 
                     $rids[]   = $meeting->id;
                     $return[] = $entry;
@@ -3145,6 +3147,7 @@
                         $entry->name        = $meeting->name;
                         $entry->recordingid = $recording->id;
                         $entry->created     = $recording->created;
+                        $entry->size        = $recording->size;
 
                         $rids[]   = $meeting->id;
                         $return[] = $entry;
@@ -3159,6 +3162,7 @@
                         $entry->name        = $meeting->name;
                         $entry->recordingid = $recording->id;
                         $entry->created     = $recording->created;
+                        $entry->size        = $recording->size;
 
                         $rids[]   = $meeting->id;
                         $return[] = $entry;
Index: mod/elluminatelive/version.php
===================================================================
RCS file: /cvsroot/moodle/contrib/patches/elluminate_elm/mod/elluminatelive/version.php,v
retrieving revision 1.5
diff -u -r1.5 version.php
--- mod/elluminatelive/version.php	9 Apr 2009 19:18:02 -0000	1.5
+++ mod/elluminatelive/version.php	1 Jul 2009 08:26:41 -0000
@@ -5,7 +5,7 @@
 ///  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 /////////////////////////////////////////////////////////////////////////////////
 
-$module->version  = 2008070108;  // The current module version (Date: YYYYMMDDXX)
+$module->version  = 2009062200;  // The current module version (Date: YYYYMMDDXX)
 $module->requires = 2007101000;  // Requires this Moodle version
 $module->cron     = 900;         // Period for cron to check this module (secs)
 
Index: mod/elluminatelive/restorelib.php
===================================================================
RCS file: /cvsroot/moodle/contrib/patches/elluminate_elm/mod/elluminatelive/restorelib.php,v
retrieving revision 1.5
diff -u -r1.5 restorelib.php
--- mod/elluminatelive/restorelib.php	24 Apr 2009 16:24:08 -0000	1.5
+++ mod/elluminatelive/restorelib.php	1 Jul 2009 08:26:41 -0000
@@ -135,6 +135,9 @@
                                 $recrecord->visible      = backup_todb($recording['#']['VISIBLE']['0']['#']);
                                 $recrecord->groupvisible = backup_todb($recording['#']['GROUPVISIBLE']['0']['#']);
                                 $recrecord->created      = backup_todb($recording['#']['CREATED']['0']['#']);
+                                if (isset($recording['#']['SIZE']['0']['#'])) {
+                                    $recrecord->size     = backup_todb($recording['#']['SIZE']['0']['#']);
+                                }
 
                             /// See if this recording ID actually exists on the ELM server.
                                 $recordingfound = false;
Index: mod/elluminatelive/backuplib.php
===================================================================
RCS file: /cvsroot/moodle/contrib/patches/elluminate_elm/mod/elluminatelive/backuplib.php,v
retrieving revision 1.5
diff -u -r1.5 backuplib.php
--- mod/elluminatelive/backuplib.php	6 Apr 2009 18:50:12 -0000	1.5
+++ mod/elluminatelive/backuplib.php	1 Jul 2009 08:26:41 -0000
@@ -194,6 +194,7 @@
                         fwrite ($bf,full_tag('VISIBLE',8,false,$recording->visible));
                         fwrite ($bf,full_tag('GROUPVISIBLE',8,false,$recording->groupvisible));
                         fwrite ($bf,full_tag('CREATED',8,false,$recording->created));
+                        fwrite ($bf,full_tag('SIZE',8,false,$recording->size));
                         fwrite ($bf,end_tag('RECORDING',7,true));
                     }
                     fwrite ($bf,end_tag('RECORDINGS',6,true));
Index: mod/elluminatelive/db/install.xml
===================================================================
RCS file: /cvsroot/moodle/contrib/patches/elluminate_elm/mod/elluminatelive/db/install.xml,v
retrieving revision 1.5
diff -u -r1.5 install.xml
--- mod/elluminatelive/db/install.xml	5 Jun 2009 20:12:38 -0000	1.5
+++ mod/elluminatelive/db/install.xml	1 Jul 2009 08:26:41 -0000
@@ -55,7 +55,8 @@
         <FIELD NAME="description" TYPE="char" LENGTH="255" NOTNULL="false" UNSIGNED="false" SEQUENCE="false" ENUM="false" PREVIOUS="recordingid" NEXT="visible"/>
         <FIELD NAME="visible" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="description" NEXT="groupvisible"/>
         <FIELD NAME="groupvisible" TYPE="int" LENGTH="1" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="visible" NEXT="created"/>
-        <FIELD NAME="created" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="groupvisible"/>
+        <FIELD NAME="created" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="groupvisible" NEXT="size"/>
+        <FIELD NAME="size" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="created"/>
       </FIELDS>
       <KEYS>
         <KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for elluminatelive_recordings"/>
Index: mod/elluminatelive/db/upgrade.php
===================================================================
RCS file: /cvsroot/moodle/contrib/patches/elluminate_elm/mod/elluminatelive/db/upgrade.php,v
retrieving revision 1.6
diff -u -r1.6 upgrade.php
--- mod/elluminatelive/db/upgrade.php	5 Jun 2009 20:12:38 -0000	1.6
+++ mod/elluminatelive/db/upgrade.php	1 Jul 2009 08:26:41 -0000
@@ -232,6 +232,28 @@
             $result = $result && add_field($table, $field);
         }
 
+        if ($result && $oldversion < 2009062200) {
+            $table = new XMLDBTable('elluminatelive_recordings');
+            $field = new XMLDBField('size');
+            $field->setAttributes(XMLDB_TYPE_INTEGER, '10', null, null, null, null, null, '0', 'created');
+
+            if (!field_exists($table, $field)) {
+                $result = $result && add_field($table, $field);
+            }
+
+            if ($recordings = get_recordset('elluminatelive_recordings','size','0')) {
+                while ($recording = rs_fetch_next_record($recordings)) {
+                    $filter = 'recordingId = ' . $recording->recordingid;
+                    if ($er = elluminatelive_list_recordings($filter)) {
+                        $recording->size = $er[0]->size;
+                        $recording = addslashes_object($recording);
+                        update_record('elluminatelive_recordings', $recording);
+                    }
+                }
+                rs_close($recordings);
+            }
+        }
+
         return $result;
     }
 
