This file contains hidden or 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/core.php b/classes/kohana/core.php | |
index 7b6eeb8..8f40260 100644 | |
--- a/classes/kohana/core.php | |
+++ b/classes/kohana/core.php | |
@@ -1438,7 +1438,7 @@ class Kohana_Core { | |
// Introspection on closures in a stack trace is impossible | |
$params = NULL; | |
} | |
- else | |
+ elseif (function_exists($step['function'])) |
This file contains hidden or 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 | |
/** | |
* The directory in which the Kohana resources are located. The system | |
* directory must contain the classes/kohana.php file. | |
* | |
* @see http://kohanaframework.org/guide/about.install#system | |
*/ | |
$system = '.'; |
This file contains hidden or 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/request.php b/classes/kohana/request.php | |
index d739056..a639c48 100644 | |
--- a/classes/kohana/request.php | |
+++ b/classes/kohana/request.php | |
@@ -988,7 +988,7 @@ class Kohana_Request { | |
if ($this !== Request::$instance) | |
{ | |
// Add the parent request uri | |
- $benchmark .= ' « "'.Request::$current->uri.'"'; | |
+ $benchmark .= ' « "'.(NULL == Request::$current ? '<empty uri>' : Request::$current->uri).'"'; |
This file contains hidden or 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
module Picombo | |
module Stache | |
class User_View < Mustache | |
self.template = File.open(Picombo::Core.find_file('views', 'user/view', true, 'mustache').shift).read | |
@user = nil | |
def initialize | |
Picombo::Head.add_js('js/jquery.js') | |
Picombo::Head.add_js('js/effects.js') |
This file contains hidden or 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
<div id="profile_summary_tile"> | |
{{#user}} | |
<h2>{{username}}</h2> | |
<ul id="metadata"> | |
<li>Views: {{views}}</li> | |
<li>Votes: {{vote_count}}</li> | |
<li>Rating: {{rating_cache}}</li> | |
</ul> | |
<ul id="user_actions"> | |
{{^is_friend?}}<li><a href="user/friend/add?username={{username}}">Become friends</a></li>{{/is_friend?}} |
This file contains hidden or 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
@account.feed_posts.each do |post| | |
puts 'init: '+post.user.inspect | |
end |
This file contains hidden or 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
module Picombo | |
module Models | |
class Feed_Post < Picombo::Model | |
storage_names[:default] = 'feed_posts' | |
property :id, Serial, :key => true | |
property :content, String | |
belongs_to :user, :model => 'Picombo::Models::User' | |
end |
This file contains hidden or 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
module Picombo | |
module Models | |
class User < Picombo::Model | |
storage_names[:default] = 'users' | |
property :id, Serial, :key => true | |
property :email, String | |
property :password, String | |
property :first_name, String | |
property :last_name, String |
This file contains hidden or 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
module Picombo | |
module Controllers | |
class Tournament < Picombo::Controllers::Template | |
def initialize | |
super | |
end | |
def index | |
@@template[:body] = Picombo::Stache::Tournament_Index.render |
This file contains hidden or 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
/** | |
* Same as fetch_all except you can pass a where clause | |
* | |
* @param array $where the where clause | |
* @param string $order_by a column to order on | |
* @param string $direction the direction to sort | |
* @param string $type the type of where to run | |
* | |
* @return Database_Result | |
*/ |