This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/classes/kohana/orm/validation/exception.php b/classes/kohana/orm/validation/exception.php | |
index 67b3fe3..0e4b4a7 100644 | |
--- a/classes/kohana/orm/validation/exception.php | |
+++ b/classes/kohana/orm/validation/exception.php | |
@@ -150,7 +150,15 @@ class Kohana_ORM_Validation_Exception extends Kohana_Exception { | |
{ | |
if (is_array($object)) | |
{ | |
- $errors[$key] = $this->generate_errors($alias.DIRECTORY_SEPARATOR.$key, $object, $directory, $translate); | |
+ // Temporary hack - see #4185 and #3877 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/classes/kohana/orm/validation/exception.php b/classes/kohana/orm/validation/exception.php | |
index 6e0bfd9..67b3fe3 100644 | |
--- a/classes/kohana/orm/validation/exception.php | |
+++ b/classes/kohana/orm/validation/exception.php | |
@@ -150,7 +150,7 @@ class Kohana_ORM_Validation_Exception extends Kohana_Exception { | |
{ | |
if (is_array($object)) | |
{ | |
- $errors[$key] = $this->generate_errors($key, $object, $directory, $translate); | |
+ $errors[$key] = $this->generate_errors($alias.DIRECTORY_SEPARATOR.$key, $object, $directory, $translate); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Fire up a router and add some routes ... | |
$router = Router::factory(); | |
// This one handles PUT and POST requests | |
$route_one = Route::factory('tickets_one') | |
->method(array( | |
'POST', | |
'PUT' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bla | |
def some_method() | |
begin | |
// Do some shit | |
rescue | |
retry if bla bla | |
ensure | |
// Normal Finally block | |
end | |
rescue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* | |
* | |
* @package MIP Website | |
* @category Controller | |
* @author Managed I.T. | |
* @copyright (c) 2011 Managed I.T. | |
*/ | |
class Controller_Test extends Controller { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata":{ | |
"error":false, | |
"total":3, | |
"fetched":3, | |
"offset":0, | |
"limit":25, | |
"type":"job" | |
}, | |
"actions":{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
./oauth2 | |
./oauth2/provider.php | |
./oauth2/exception.php | |
./oauth2/exception | |
./oauth2/exception/invalidgrant.php | |
./oauth2/exception/insufficientscope.php | |
./oauth2/exception/invalidclient.php | |
./oauth2/exception/unsupportedgranttype.php | |
./oauth2/exception/invalidrequest.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* | |
* | |
* @package OAuth2 | |
* @category Library | |
* @author Managed I.T. | |
* @copyright (c) 2011 Managed I.T. | |
* @license https://github.com/managedit/kohana-oauth2/blob/master/LICENSE.md | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class ORM extends Kohana_ORM { | |
public function create(Validation $validation = NULL) | |
{ | |
$this->_pre_create(); | |
$return = parent::create($validation); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
class Controller_Test2 { | |
public function action_index() | |
{ | |
// State can be used to bring the user back to where they originally were before the redirect.. | |
$state = json_decode($this->request->query('state')); | |
// Load up the right consumer | |
$client = OAuth2_Consumer::factory('mip'); |