mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Hooks for Check***Fields() methods
This commit is contained in:
parent
d13b6a2115
commit
a0ffa136b6
|
@ -505,7 +505,13 @@ class ActionBlog extends Action {
|
||||||
if (!func_check(getRequest('blog_limit_rating_topic'),'float')) {
|
if (!func_check(getRequest('blog_limit_rating_topic'),'float')) {
|
||||||
$this->Message_AddError($this->Lang_Get('blog_create_rating_error'),$this->Lang_Get('error'));
|
$this->Message_AddError($this->Lang_Get('blog_create_rating_error'),$this->Lang_Get('error'));
|
||||||
$bOk=false;
|
$bOk=false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Выполнение хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('ckeck_blog_fields', array('bOk'=>$bOk));
|
||||||
|
|
||||||
return $bOk;
|
return $bOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -487,6 +487,12 @@ class ActionLink extends Action {
|
||||||
} else {
|
} else {
|
||||||
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Выполнение хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('ckeck_link_fields', array('bOk'=>$bOk));
|
||||||
|
|
||||||
return $bOk;
|
return $bOk;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -288,7 +288,11 @@ class ActionPage extends Action {
|
||||||
$this->Message_AddError($this->Lang_Get('page_create_parent_page_error'),$this->Lang_Get('error'));
|
$this->Message_AddError($this->Lang_Get('page_create_parent_page_error'),$this->Lang_Get('error'));
|
||||||
$bOk=false;
|
$bOk=false;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Выполнение хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('ckeck_page_fields', array('bOk'=>$bOk));
|
||||||
|
|
||||||
return $bOk;
|
return $bOk;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -497,6 +497,12 @@ class ActionQuestion extends Action {
|
||||||
} else {
|
} else {
|
||||||
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Выполнение хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('ckeck_question_fields', array('bOk'=>$bOk));
|
||||||
|
|
||||||
return $bOk;
|
return $bOk;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -274,7 +274,7 @@ class ActionRegistration extends Action {
|
||||||
*
|
*
|
||||||
* @return unknown
|
* @return unknown
|
||||||
*/
|
*/
|
||||||
protected function CheckInviteRegister() {
|
protected function CheckInviteRegister() {
|
||||||
if ($this->Session_Get('invite_code')) {
|
if ($this->Session_Get('invite_code')) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -406,7 +406,12 @@ class ActionTalk extends Action {
|
||||||
} else {
|
} else {
|
||||||
$_REQUEST['talk_users']=join(',',$aUsersNew);
|
$_REQUEST['talk_users']=join(',',$aUsersNew);
|
||||||
}
|
}
|
||||||
//$bOk=false;
|
|
||||||
|
/**
|
||||||
|
* Выполнение хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('ckeck_talk_fields', array('bOk'=>$bOk));
|
||||||
|
|
||||||
return $bOk;
|
return $bOk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -539,6 +539,11 @@ class ActionTopic extends Action {
|
||||||
} else {
|
} else {
|
||||||
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
$_REQUEST['topic_tags']=join(',',$aTagsNew);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Выполнение хуков
|
||||||
|
*/
|
||||||
|
$this->Hook_Run('ckeck_topic_fields', array('bOk'=>$bOk));
|
||||||
|
|
||||||
return $bOk;
|
return $bOk;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue