mirror of
https://github.com/friendica/friendica
synced 2025-04-20 03:50:13 +00:00
Add routes for current BaseModules
This commit is contained in:
parent
b6b9e57488
commit
07ba1b200c
16 changed files with 806 additions and 722 deletions
|
@ -25,6 +25,7 @@ class Photo extends BaseModule
|
|||
public static function init()
|
||||
{
|
||||
$a = self::getApp();
|
||||
// @TODO: Replace with parameter from router
|
||||
if ($a->argc <= 1 || $a->argc > 4) {
|
||||
System::httpExit(400);
|
||||
}
|
||||
|
@ -47,6 +48,7 @@ class Photo extends BaseModule
|
|||
|
||||
$customsize = 0;
|
||||
$photo = false;
|
||||
// @TODO: Replace with parameter from router
|
||||
switch($a->argc) {
|
||||
case 4:
|
||||
$customsize = intval($a->argv[2]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue