From 904e4539d34067d153c7630a440b982d2ad6ac8d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 11 Dec 2005 06:30:18 +0000 Subject: [PATCH] s/( |->)_message/message/g --- db_mysql.php | 2 +- dev/changes.txt | 3 ++- kernel.php | 8 ++++---- printer.php | 2 +- template.php | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/db_mysql.php b/db_mysql.php index d824e5f..79ce812 100644 --- a/db_mysql.php +++ b/db_mysql.php @@ -295,7 +295,7 @@ class DB_MySQL $message_prepped .= "\n\t» File: " . $_SERVER['PHP_SELF'] . "\n"; $message_prepped .= "\n

\n"; - $this->registry->_message('Database Error in `' . $this->registry->application . '`', $message_prepped, 3); + $this->registry->message('Database Error in `' . $this->registry->application . '`', $message_prepped, 3); exit; } } diff --git a/dev/changes.txt b/dev/changes.txt index 4177863..271739a 100644 --- a/dev/changes.txt +++ b/dev/changes.txt @@ -9,4 +9,5 @@ CHANGELOG FOR 2.0 - Added printer class [printer.php] - Added explain_error_reporting() [kernel.php] - Added installer subsystem functions [installer.php] -- Added two style sheets, printer.css.php and installer.css.php \ No newline at end of file +- Added two style sheets, printer.css.php and installer.css.php +- Renamed _message() to message() [kernel.php] \ No newline at end of file diff --git a/kernel.php b/kernel.php index fec4483..e5812bf 100644 --- a/kernel.php +++ b/kernel.php @@ -338,7 +338,7 @@ class Shared_Object_Framework $output = "\n\n\n\n"; - $this->_message('Loaded Modules', $output, 1); + $this->message('Loaded Modules', $output, 1); } } @@ -372,7 +372,7 @@ class Shared_Object_Framework * * @return mixed Output or null */ - function _message($title, $message, $type, $return = false, $stack = true) + function message($title, $message, $type, $return = false, $stack = true) { switch ($type) { @@ -466,7 +466,7 @@ class Shared_Object_Framework $errstr .= " in $errfile on line $errline"; - $this->_message($title, $errstr, $level); + $this->message($title, $errstr, $level); if ($errno == E_USER_ERROR) { @@ -509,7 +509,7 @@ class Shared_Object_Framework $table .= ' '; - $this->_message('Error Reporting', $table, 1); + $this->message('Error Reporting', $table, 1); } /** diff --git a/printer.php b/printer.php index 2dab9b4..e550ab2 100644 --- a/printer.php +++ b/printer.php @@ -380,7 +380,7 @@ EOD; // --- END $debug .= "\n"; - $debug = "\n
\n" . $this->registry->_message('Debug Information', $debug, 1, true, false); + $debug = "\n
\n" . $this->registry->message('Debug Information', $debug, 1, true, false); echo "\n\n\n
\n$debug\n
\n\n\n"; } diff --git a/template.php b/template.php index e2c0a83..90e2df0 100644 --- a/template.php +++ b/template.php @@ -334,7 +334,7 @@ class Template // --- END $debug .= "\n"; - $debug = "\n
\n" . $this->registry->_message('Debug Information', $debug, 1, true, false); + $debug = "\n
\n" . $this->registry->message('Debug Information', $debug, 1, true, false); $template = str_replace('', "\n\n\n
\n$debug\n
\n\n\n", $template); } -- 2.43.5