www/adium.im 491:164c9a505d21: Blip.tv video IDs are alphanumeri...
commits at adium.im
commits at adium.im
Mon Jan 2 19:10:03 UTC 2012
details: http://hg.adium.im/www/adium.im/rev/164c9a505d21
revision: 491:164c9a505d21
branch: adiumx.com
author: Peter Hosey <hg at boredzo.org>
date: Mon Jan 02 11:09:52 2012 -0800
Blip.tv video IDs are alphanumeric, so they need to be in quotes.
diffs (24 lines):
diff -r 20d283f15243 -r 164c9a505d21 screencasts/index.php
--- a/screencasts/index.php Mon Jan 02 11:06:50 2012 -0800
+++ b/screencasts/index.php Mon Jan 02 11:09:52 2012 -0800
@@ -173,9 +173,9 @@
foreach ($episodes as $episode) {
$which = !$which; // SMARTY
printf('<tr id="episode%d" class="episode episode%d">', $count, $which);
- printf('<td class="episodeImgae"><a href="/screencasts/%s" onclick="changeEpisode(%d, %d, \'%s\'); return false;"><img src="previews/episode%d.png" alt="Preview of Episode %s" style="border: 0;" /></a></td>', $episode['permalink_name'], $count, $episode['blip_id'], $episode['title'], $count, $episode['title']);
+ printf('<td class="episodeImgae"><a href="/screencasts/%s" onclick="changeEpisode(%d, \'%s\', \'%s\'); return false;"><img src="previews/episode%d.png" alt="Preview of Episode %s" style="border: 0;" /></a></td>', $episode['permalink_name'], $count, $episode['blip_id'], $episode['title'], $count, $episode['title']);
printf('<td>');
- printf('<a href="/screencasts/%s" onclick="javascript:changeEpisode(%d, %d, \'%s\'); return false;">Episode %d: %s</a>', $episode['permalink_name'], $count, $episode['blip_id'], $episode['title'], $count++, $episode['title']);
+ printf('<a href="/screencasts/%s" onclick="javascript:changeEpisode(%d, \'%s\', \'%s\'); return false;">Episode %d: %s</a>', $episode['permalink_name'], $count, $episode['blip_id'], $episode['title'], $count++, $episode['title']);
printf('<p>%s</p>', $episode['description']);
printf('</td>');
printf('</tr>');
@@ -186,7 +186,7 @@
</div>
<?php if ($video_ID !== null) { ?>
<script type="text/javascript" charset="utf-8">
- changeEpisode(<?=$video_ID?>, <?=$episodes[$video_ID]['blip_id']?>, '<?=$episodes[$video_ID]['title']?>');
+ changeEpisode(<?=$video_ID?>, '<?=$episodes[$video_ID]['blip_id']?>', '<?=$episodes[$video_ID]['title']?>');
</script>
<?php } ?>
</div>
More information about the commits
mailing list