Skip to content

Instantly share code, notes, and snippets.

View kiall's full-sized avatar

Kiall Mac Innes kiall

  • Microsoft
  • Dublin, Ireland
View GitHub Profile
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
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);
<?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'
class Bla
def some_method()
begin
// Do some shit
rescue
retry if bla bla
ensure
// Normal Finally block
end
rescue
<?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 {
{
"metadata":{
"error":false,
"total":3,
"fetched":3,
"offset":0,
"limit":25,
"type":"job"
},
"actions":{
.
./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
<?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
*/
<?php
class ORM extends Kohana_ORM {
public function create(Validation $validation = NULL)
{
$this->_pre_create();
$return = parent::create($validation);
<?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');