mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 19:39:16 -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:
@@ -52,7 +52,7 @@ class Sendmail_Core {
|
||||
break;
|
||||
case "header":
|
||||
if (count($value) != 2) {
|
||||
Kohana::log("error", wordwrap("Invalid header parameters\n" . Kohana::debug($value)));
|
||||
Kohana_Log::add("error", wordwrap("Invalid header parameters\n" . Kohana::debug($value)));
|
||||
throw new Exception("@todo INVALID_HEADER_PARAMETERS");
|
||||
}
|
||||
$this->headers[$value[0]] = $value[1];
|
||||
@@ -71,7 +71,7 @@ class Sendmail_Core {
|
||||
|
||||
public function send() {
|
||||
if (empty($this->to)) {
|
||||
Kohana::log("error", wordwrap("Sending mail failed:\nNo to address specified"));
|
||||
Kohana_Log::add("error", wordwrap("Sending mail failed:\nNo to address specified"));
|
||||
throw new Exception("@todo TO_IS_REQUIRED_FOR_MAIL");
|
||||
}
|
||||
$to = implode(", ", $this->to);
|
||||
|
||||
Reference in New Issue
Block a user