mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
adding check for dispatcher class in requestAction
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5116 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5077bfc93e
commit
c35c14ff39
1 changed files with 4 additions and 1 deletions
|
@ -83,6 +83,9 @@ class Object {
|
|||
*/
|
||||
function requestAction($url, $extra = array()) {
|
||||
if (!empty($url)) {
|
||||
if(!class_exists('dispatcher')) {
|
||||
require CAKE . 'dispatcher.php';
|
||||
}
|
||||
$dispatcher =& new Dispatcher();
|
||||
if(isset($this->plugin)){
|
||||
$extra['plugin'] = $this->plugin;
|
||||
|
@ -136,7 +139,7 @@ class Object {
|
|||
* Allows setting of multiple properties of the object in a single line of code.
|
||||
*
|
||||
* @access public
|
||||
* @param array $properties An associative array containing AuthComponent
|
||||
* @param array $properties An associative array containing
|
||||
* properties and corresponding values.
|
||||
* @return void
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue