1
0

Drop unnecessary use of uninitialized $form variable.

This commit is contained in:
Bharat Mediratta 2009-11-17 10:04:33 -08:00
parent 99a4fdfb1d
commit a19d2132b2

View File

@ -24,7 +24,7 @@ class latestupdates_block_Core {
static function get($block_id, $theme) { static function get($block_id, $theme) {
$block = ""; $block = "";
switch ($block_id) { switch ($block_id) {
case "latestupdates": case "latestupdates":
// Determine the ID# of the current album. // Determine the ID# of the current album.
@ -35,12 +35,11 @@ class latestupdates_block_Core {
$block->css_id = "g-latest-updates"; $block->css_id = "g-latest-updates";
$block->title = t("Latest Updates"); $block->title = t("Latest Updates");
$block->content = new View("latestupdates_block.html"); $block->content = new View("latestupdates_block.html");
$block->content->batch_tag_form = $form;
$block->content->update_links = array( $block->content->update_links = array(
"Entire Gallery" => url::site("latestupdates/updates"), "Entire Gallery" => url::site("latestupdates/updates"),
"This Album" => url::site("latestupdates/albums/$albumID") "This Album" => url::site("latestupdates/albums/$albumID")
); );
break; break;
} }
return $block; return $block;
} }