fixed legacy cache access
This commit is contained in:
@@ -37,11 +37,11 @@ class BuildingModel {
|
||||
}
|
||||
}
|
||||
|
||||
$me = mfValuecache::get("me");
|
||||
$me = mfValuecache::singleton()->get("me");
|
||||
if(!$me) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
mfValuecache::set("me", $this->me);
|
||||
mfValuecache::singleton()->set("me", $this->me);
|
||||
}
|
||||
|
||||
if($model->create_by === null) {
|
||||
|
||||
@@ -34,11 +34,11 @@ class PopModel {
|
||||
}
|
||||
}
|
||||
|
||||
$me = mfValuecache::get("me");
|
||||
$me = mfValuecache::singleton()->get("me");
|
||||
if(!$me) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
mfValuecache::set("me", $this->me);
|
||||
mfValuecache::singleton()->set("me", $this->me);
|
||||
}
|
||||
|
||||
if($model->create_by === null) {
|
||||
@@ -127,4 +127,4 @@ class PopModel {
|
||||
return $where;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@ class TerminationController extends mfBaseController {
|
||||
|
||||
protected function init() {
|
||||
$this->needlogin=true;
|
||||
$me = mfValuecache::get("me");
|
||||
$me = mfValuecache::singleton()->get("me");
|
||||
if(!$me) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
mfValuecache::set("me", $this->me);
|
||||
mfValuecache::singleton()->set("me", $this->me);
|
||||
}
|
||||
$this->me = $me;
|
||||
$this->layout()->set("me",$me);
|
||||
|
||||
@@ -30,11 +30,11 @@ class TerminationModel {
|
||||
$model->status_id = 1;
|
||||
}
|
||||
|
||||
$me = mfValuecache::get("me");
|
||||
$me = mfValuecache::singleton()->get("me");
|
||||
if(!$me) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
mfValuecache::set("me", $this->me);
|
||||
mfValuecache::singleton()->set("me", $this->me);
|
||||
}
|
||||
|
||||
if($model->create_by === null) {
|
||||
@@ -212,4 +212,4 @@ class TerminationModel {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,11 +21,11 @@ class TerminationFileModel {
|
||||
}
|
||||
}
|
||||
|
||||
$me = mfValuecache::get("me");
|
||||
$me = mfValuecache::singleton()->get("me");
|
||||
if(!$me) {
|
||||
$me = new User();
|
||||
$me->loadMe();
|
||||
mfValuecache::set("me", $this->me);
|
||||
mfValuecache::singleton()->set("me", $this->me);
|
||||
}
|
||||
|
||||
if($model->create_by === null) {
|
||||
@@ -157,4 +157,4 @@ class TerminationFileModel {
|
||||
return $where;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user