mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
Small fixes
- Avoid an intermediate variable - Use `rawContent()` in `Attach` module - Small typo
This commit is contained in:
parent
2f49c4a058
commit
518f28a7bf
3 changed files with 5 additions and 8 deletions
|
@ -18,11 +18,9 @@ use Friendica\Model\Attach as MAttach;
|
|||
class Attach extends BaseModule
|
||||
{
|
||||
/**
|
||||
* @brief Module initializer
|
||||
*
|
||||
* Fetch an attached file given the id
|
||||
* @brief Return to user an attached file given the id
|
||||
*/
|
||||
public static function init()
|
||||
public static function rawContent()
|
||||
{
|
||||
$a = self::getApp();
|
||||
if ($a->argc != 2) {
|
||||
|
@ -64,4 +62,4 @@ class Attach extends BaseModule
|
|||
exit();
|
||||
// NOTREACHED
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue