diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-10-30 19:40:24 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-10-30 19:40:24 +0000 |
| commit | 1b31889382cf05c88218446919a18b377b17a96b (patch) | |
| tree | 28a9ef7f8c82824f8481c3a6d07cc8162449f8fc /modules/random_media | |
| parent | fe8b71f311753b6bb7be62b697035e420fb5f056 (diff) | |
| download | webtrees-1b31889382cf05c88218446919a18b377b17a96b.tar.gz webtrees-1b31889382cf05c88218446919a18b377b17a96b.tar.bz2 webtrees-1b31889382cf05c88218446919a18b377b17a96b.zip | |
Diffstat (limited to 'modules/random_media')
| -rw-r--r-- | modules/random_media/module.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/random_media/module.php b/modules/random_media/module.php index 615adf8139..ef307dc04b 100644 --- a/modules/random_media/module.php +++ b/modules/random_media/module.php @@ -106,7 +106,7 @@ class random_media_WT_Module extends WT_Module implements WT_Module_Block { $i=0; $disp = false; //-- try up to 40 times to get a media to display - while($i<40) { + while ($i<40) { $error = false; $value = array_rand($medialist); if (WT_DEBUG) { @@ -139,13 +139,13 @@ class random_media_WT_Module extends WT_Module implements WT_Module_Block { if (WT_DEBUG && !$disp && !$error) {$error = true; echo "<span class=\"error\">".$medialist[$value]["XREF"]." failed Format or Type filters</span><br />"; } - if ($disp && count($links) != 0){ + if ($disp && count($links) != 0) { if ($disp && $filter!="all") { // Apply filter criteria $ct = preg_match("/0 (@.*@) OBJE/", $medialist[$value]["GEDCOM"], $match); $objectID = $match[1]; //-- we could probably use the database for this filter - foreach($links as $key=>$type) { + foreach ($links as $key=>$type) { $gedrec = find_gedcom_record($key, WT_GED_ID); $ct2 = preg_match("/(\d) OBJE {$objectID}/", $gedrec, $match2); if ($ct2>0) { @@ -267,7 +267,7 @@ function openPic(filename, width, height) { // $content .= " ><a href=\"javascript:;\" onclick=\"return openImage('".$medialist[$value]["FILE"]."', $imgwidth, $imgheight);\">"; // $content .= "><a href=\"" . $medialist[$value]["FILE"] . "\" rel=\"clearbox[general_4]\" title=\"" . $mediaid . "\">"; $content .= " ><a href=\"mediaviewer.php?mid=".$mediaid."\">"; - }else + } else // --------------------------------------------------------------------------------------------- |
