admin) { Router::$controller = "maintenance"; Router::$controller_path = APPPATH . "controllers/maintenance.php"; Router::$method = "index"; } } static function move_item($source, $target) { access::required("edit", $source); access::required("edit", $target); $parent = $source->parent(); if ($parent->album_cover_item_id == $source->id) { $parent->remove_album_cover(); } $source->move_to($target); // If the target has no cover item, make this it. if ($target->album_cover_item_id == null) { $source->make_album_cover(); } } }