diff options
author | Malf Furious <m@lfurio.us> | 2016-06-11 00:51:46 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-06-11 00:51:46 -0400 |
commit | 112a510bb7ba358fd4195b5b2f3c8203ab4fb91d (patch) | |
tree | 717435492a507a21d3954972d7f31440cb06bfb5 | |
parent | e2328c50f6fd101b4eaee410afb23290965b45b9 (diff) | |
download | scrott-112a510bb7ba358fd4195b5b2f3c8203ab4fb91d.tar.gz scrott-112a510bb7ba358fd4195b5b2f3c8203ab4fb91d.zip |
Rename variable
In the Obj MVC, rename group in the model to obj. This will help with
referencing the active object from template views without knowing what
type of object it is.
-rw-r--r-- | app/model/obj.mod.php | 6 | ||||
-rw-r--r-- | app/view/obj/group.view.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/model/obj.mod.php b/app/model/obj.mod.php index f412e3c..426e1ac 100644 --- a/app/model/obj.mod.php +++ b/app/model/obj.mod.php @@ -24,9 +24,9 @@ class ObjModel extends CommonModel */ function initGroup($guid) { - $this->group = new Group($guid); - $this->owner = $this->group->getOwner(); - $this->members = $this->group->getMembers(); + $this->obj = new Group($guid); + $this->owner = $this->obj->getOwner(); + $this->members = $this->obj->getMembers(); } } diff --git a/app/view/obj/group.view.php b/app/view/obj/group.view.php index dde4df1..c75995b 100644 --- a/app/view/obj/group.view.php +++ b/app/view/obj/group.view.php @@ -17,7 +17,7 @@ <html lang="en"> <head> <?php include "view/common/head.view.php"; ?> - <title>Scrott - <?=$mod->group->name?></title> + <title>Scrott - <?=$mod->obj->name?></title> </head> <body> @@ -25,7 +25,7 @@ <div class="container"> <div class="well well-lg"> - <h1><?=$mod->group->name?></h1> + <h1><?=$mod->obj->name?></h1> <img src="<?=$mod->owner->getHeadImage()?>" alt="<?=$mod->owner->getDisplayName()?>" class="img-circle" height="50" /> <?php if (count($mod->members)) { ?> |