Merge pull request #4031 from MrPetovan/task/3878-move-objects-to-model

Move Objects to Model
This commit is contained in:
Michael Vogel 2017-12-08 05:02:21 +01:00 committed by GitHub
commit e437c74d0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
77 changed files with 636 additions and 593 deletions

View file

@ -12,7 +12,7 @@ use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Database\DBM;
use Friendica\Object\Photo;
use Friendica\Object\Image;
$frio = "view/theme/frio";
@ -82,7 +82,7 @@ function frio_uninstall() {
*/
function frio_item_photo_links(App $a, &$body_info)
{
$phototypes = Photo::supportedTypes();
$phototypes = Image::supportedTypes();
$occurence = 1;
$p = bb_find_open_close($body_info['html'], "<a", ">");

View file

@ -11,7 +11,7 @@
use Friendica\App;
use Friendica\Core\System;
use Friendica\Object\Photo;
use Friendica\Object\Image;
function frost_init(App $a) {
$a->videowidth = 400;
@ -48,7 +48,7 @@ function frost_uninstall() {
function frost_item_photo_links(App $a, &$body_info)
{
$phototypes = Photo::supportedTypes();
$phototypes = Image::supportedTypes();
$occurence = 1;
$p = bb_find_open_close($body_info['html'], "<a", ">");

View file

@ -15,7 +15,7 @@ use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\System;
use Friendica\Database\DBM;
use Friendica\Model\GlobalContact;
use Friendica\Model\GContact;
require_once "include/plugin.php";
require_once "mod/proxy.php";
@ -139,7 +139,7 @@ function vier_community_info() {
// comunity_profiles
if ($show_profiles) {
$r = GlobalContact::suggestionQuery(local_user(), 0, 9);
$r = GContact::suggestionQuery(local_user(), 0, 9);
$tpl = get_markup_template('ch_directory_item.tpl');
if (DBM::is_result($r)) {