<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -599,15 +599,15 @@ Class CategoryList extends Partial {
 		$html = '';
 		foreach($files as $key =&gt; $file) {
 			// for each page within this category...
-			$vars = array(
+			$replacements = array(
 				'/@url/' =&gt; $path.'/'.preg_replace('/^\d+?\./', '', $file).'/',
 				'/@thumb/' =&gt; $page-&gt;link_path.'content/'.self::check_thumb($dir, $file)
 			);
 			// create a MockPageInCategory to give us access to all the variables inside this PageInCategory
 			$c = new ContentParser;
 			$category_page = new MockPageInCategory(preg_replace('/\.\.\/content\//', '', $dir), $file);
-			$vars = array_merge($vars, $c-&gt;parse($category_page));
-			$html .= preg_replace(array_keys($vars), array_values($vars), $loop_html);
+			$replacements = array_merge($replacements, $c-&gt;parse($category_page));
+			$html .= preg_replace(array_keys($replacements), array_values($replacements), $loop_html);
 		}
 		
 		return $html;
@@ -673,7 +673,13 @@ Class Images extends Partial {
 		
 		$files = $page-&gt;image_files;
 		foreach($files as $key =&gt; $file) {
-			$html .= preg_replace('/@url/', $dir.'/'.$file, $loop_html);
+			$name = preg_replace(array('/\.[\w\d]+?$/', '/^\d+?\./'), '', $file);
+			$replacements = array(
+				'/@url/' =&gt; $dir.'/'.$file,
+				'/@name/' =&gt; ucfirst(preg_replace('/-/', ' ', $name)),
+			);
+			
+			$html .= preg_replace(array_keys($replacements), array_values($replacements), $loop_html);
 		}
 		
 		return $html;
@@ -693,17 +699,15 @@ Class Video extends Partial {
 			// pull dimensions from file name (if they exist)
 			if(preg_match('/(\d+?)x(\d+?)\./', $file, $matches)) $dimensions = array('width' =&gt; $matches[1], 'height' =&gt; $matches[2]);
 			else $dimensions = array('width' =&gt; '', 'height' =&gt; '');
-			$html .= preg_replace(array(
-				'/@url/',
-				'/@width/',
-				'/@height/'
-			), array(
-				$dir.'/'.$file,
-				$dimensions['width'],
-				$dimensions['height']
-			), $loop_html);
-		}
 		
+			$replacements = array(
+				'/@url/' =&gt; $dir.'/'.$file,
+				'/@width/' =&gt; $dimensions['width'],
+				'/@height/' =&gt; $dimensions['height']
+			);
+		
+			$html .= preg_replace(array_keys($replacements), array_values($replacements), $loop_html);
+		}
 		return $html;
 	}
 
@@ -721,15 +725,13 @@ Class Swf extends Partial {
 			// pull dimensions from file name (if they exist)
 			if(preg_match('/(\d+?)x(\d+?)\./', $file, $matches)) $dimensions = array('width' =&gt; $matches[1], 'height' =&gt; $matches[2]);
 			else $dimensions = array('width' =&gt; '', 'height' =&gt; '');
-			$html .= preg_replace(array(
-				'/@url/',
-				'/@width/',
-				'/@height/'
-			), array(
-				$dir.'/'.$file,
-				$dimensions['width'],
-				$dimensions['height']
-			), $loop_html);
+			$replacements = array(
+				'/@url/' =&gt; $dir.'/'.$file,
+				'/@width/' =&gt; $dimensions['width'],
+				'/@height/' =&gt; $dimensions['height']
+			);
+		
+			$html .= preg_replace(array_keys($replacements), array_values($replacements), $loop_html);
 		}			
 		return $html;
 	}</diff>
      <filename>app/stacey.inc.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5a758aa311f7d4fde0dae06bdc56323441591e8d</id>
    </parent>
  </parents>
  <author>
    <name>Anthony Kolber</name>
    <email>ae@aestheticallyloyal.com</email>
  </author>
  <url>http://github.com/kolber/stacey/commit/b4bd530171b6a2f8dc09b12aca7252cc8f7ac504</url>
  <id>b4bd530171b6a2f8dc09b12aca7252cc8f7ac504</id>
  <committed-date>2009-11-08T15:25:41-08:00</committed-date>
  <authored-date>2009-11-08T15:25:41-08:00</authored-date>
  <message>Updated app files</message>
  <tree>70801d0be2cb1ab343f17e9e7d57af989ab0e8f7</tree>
  <committer>
    <name>Anthony Kolber</name>
    <email>ae@aestheticallyloyal.com</email>
  </committer>
</commit>
