mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Preliminary work to cut over to Kohana 2.4
- Kohana::log() -> Kohana_Log::add() - Kohana::config_XXX -> Kohana_Config::instance()->XXX - Implement View::set_global in MY_View - Updated Cache_Database_Driver to latest APIs - ORM::$loaded -> ORM::loaded() - Updated item::viewable() to use K2.4 parenthesization
This commit is contained in:
@@ -103,7 +103,7 @@ class Server_Add_Controller extends Admin_Controller {
|
||||
access::verify_csrf();
|
||||
|
||||
$task = ORM::factory("task", $task_id);
|
||||
if (!$task->loaded || $task->owner_id != identity::active_user()->id) {
|
||||
if (!$task->loaded() || $task->owner_id != identity::active_user()->id) {
|
||||
access::forbidden();
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ class Server_Add_Controller extends Admin_Controller {
|
||||
// Look up the parent item for this entry. By now it should exist, but if none was
|
||||
// specified, then this belongs as a child of the current item.
|
||||
$parent_entry = ORM::factory("server_add_file", $entry->parent_id);
|
||||
if (!$parent_entry->loaded) {
|
||||
if (!$parent_entry->loaded()) {
|
||||
$parent = ORM::factory("item", $task->get("item_id"));
|
||||
} else {
|
||||
$parent = ORM::factory("item", $parent_entry->item_id);
|
||||
|
||||
Reference in New Issue
Block a user