mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Photo to src
Move Photo to Friendica\Object namespace and replace require_once statments with use statements.
This commit is contained in:
parent
7b5a0fdbe0
commit
54827e7fed
27 changed files with 68 additions and 60 deletions
|
@ -1,10 +1,14 @@
|
|||
<?php
|
||||
// Based upon "Privacy Image Cache" by Tobias Hößl <https://github.com/CatoTH/>
|
||||
/**
|
||||
* @file mod/proxy.php
|
||||
* @brief Based upon "Privacy Image Cache" by Tobias Hößl <https://github.com/CatoTH/>
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Object\Photo;
|
||||
|
||||
define('PROXY_DEFAULT_TIME', 86400); // 1 Day
|
||||
|
||||
|
@ -15,7 +19,6 @@ define('PROXY_SIZE_MEDIUM', 'medium');
|
|||
define('PROXY_SIZE_LARGE', 'large');
|
||||
|
||||
require_once 'include/security.php';
|
||||
require_once 'include/Photo.php';
|
||||
|
||||
function proxy_init(App $a) {
|
||||
// Pictures are stored in one of the following ways:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue