summary refs log tree commit diff stats
path: root/php/wd-procedures.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/wd-procedures.php')
-rw-r--r--php/wd-procedures.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/php/wd-procedures.php b/php/wd-procedures.php
index 768a44d..d42de46 100644
--- a/php/wd-procedures.php
+++ b/php/wd-procedures.php
@@ -4,4 +4,9 @@ file_put_contents($dpath.$wsdata[4].'/toc/'.$vid, implode(PHP_EOL, $vdata));
 
 $vdata[1] = date('M j, Y', $vdata[1]);
 $vdata[] = file_get_contents($dpath.$wsdata[4].'/'.$cpath.$vid);
+
+if($title)
+  $title = $vdata[2];
+else
+  $title = $wsdata[5];
 ?>