mirror of
https://github.com/torrentpier/torrentpier
synced 2025-07-15 09:33:12 -07:00
One-time use variables.
This commit is contained in:
parent
bcf57cd68a
commit
95575e1096
3 changed files with 4 additions and 12 deletions
|
@ -196,9 +196,7 @@ function unlink_attach($filename, $mode = false)
|
|||
$filename = $upload_dir . '/' . $filename;
|
||||
}
|
||||
|
||||
$deleted = @unlink($filename);
|
||||
|
||||
return $deleted;
|
||||
return @unlink($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -49,9 +49,7 @@ function read_word($fp)
|
|||
{
|
||||
$data = fread($fp, 2);
|
||||
|
||||
$value = ord($data[1]) * 256 + ord($data[0]);
|
||||
|
||||
return $value;
|
||||
return ord($data[1]) * 256 + ord($data[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,9 +59,7 @@ function read_byte($fp)
|
|||
{
|
||||
$data = fread($fp, 1);
|
||||
|
||||
$value = ord($data);
|
||||
|
||||
return $value;
|
||||
return ord($data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1442,9 +1442,7 @@ function setup_style()
|
|||
|
||||
require TEMPLATES_DIR . '/' . $tpl_dir_name . '/tpl_config.php';
|
||||
|
||||
$theme = array('template_name' => $tpl_dir_name);
|
||||
|
||||
return $theme;
|
||||
return array('template_name' => $tpl_dir_name);
|
||||
}
|
||||
|
||||
// Create date / time with format and friendly date
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue