Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] diff for app_controller.php

Subject: COmanage Developers List

List archive

[comanage-dev] diff for app_controller.php


Chronological Thread 
  • From: Scott Koranda <>
  • To: comanage-dev <>
  • Subject: [comanage-dev] diff for app_controller.php
  • Date: Wed, 12 Oct 2011 15:53:09 -0500

Hi,

A diff for app_controller.php is shown below. May I commit to
resolve

https://bugs.internet2.edu/jira/browse/CO-192

? I didn't put a link in the code to the JIRA since it seemed
like overkill for this particular instance.

Thanks,

Scott

Index: app_controller.php
===================================================================
--- app_controller.php (revision 100)
+++ app_controller.php (working copy)
@@ -93,8 +93,8 @@

// Get a pointer to our model
$req = $this->modelClass;
- if($req != 'Page') // Page doesn't have an actual model
- $model = $this->$req;
+ if($req != 'Page' and $req != 'CakeError') // Page doesn't
have an actual model and
+ $model = $this->$req; // neither does
CakeError.

// First, determine if we're handling a RESTful request.
// If so, we'll do a few things differently.
@@ -242,8 +242,8 @@

// Get a pointer to our model
$req = $this->modelClass;
- if($req != 'Page') // Page doesn't have an actual model
- $model = $this->$req;
+ if($req != 'Page' and $req != 'CakeError') // Page doesn't
have an actual model and
+ $model = $this->$req; // neither does
CakeError.

if(!$this->restful && $this->requires_co && isset($this->cur_co) &&
!isset($this->params['named']['co']))
{
@@ -1149,4 +1149,4 @@
$this->header("HTTP/1.0 " . $status . " " . $txt);
}
}
-?>
\ No newline at end of file
+?>


  • [comanage-dev] diff for app_controller.php, Scott Koranda, 10/12/2011

Archive powered by MHonArc 2.6.16.

Top of Page