Skip to content

Commit

Permalink
Updated object name to prevent errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardog committed Nov 10, 2017
1 parent 753139f commit 99a8871
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions class/Factory/Sublease.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
namespace properties\Factory;

use properties\Resource\Sublease as Resource;
use properties\Factory\Sublease\Photo as Photo;
use properties\Factory\Sublease\Photo as SubPhoto;
use phpws2\Database;
use phpws2\Settings;

Expand All @@ -35,7 +35,7 @@ public function build()

public function delete(Resource $sublease)
{
$photo = new Photo;
$photo = new SubPhoto;
$photo->removeBySublease($sublease->id);
self::deleteResource($sublease);
}
Expand Down Expand Up @@ -109,7 +109,7 @@ public function view($sublease, $admin = false)
$tpl['inactive_warning'] = $sublease->active ? false : true;
$tpl['photo'] = $this->reactView('subleasephoto');
$tpl['photoupdate'] = $admin ? $this->reactView('subleaseimage') : null;
$photoFactory = new Photo;
$photoFactory = new SubPhoto;
$tpl['current_photos'] = json_encode($photoFactory->thumbs($sublease->id));
if (\Current_User::isDeity()) {
$tpl['ban_user'] = $this->reactView('banuser');
Expand Down

0 comments on commit 99a8871

Please sign in to comment.