summaryrefslogtreecommitdiff
path: root/core/libraries
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-22 06:50:20 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-22 06:50:20 +0000
commitbdc0876fa86e29ee439e69024f6f476c49886b99 (patch)
treeee1b629c7b241322f966eaf287549c8c1aefdc1d /core/libraries
parentf6381c534e92e230349f5633eb280a22421d9050 (diff)
Add messaging system for reporting actions back to the user. Make
module install/uninstall work and tie it into the messaging system.
Diffstat (limited to 'core/libraries')
-rw-r--r--core/libraries/Admin_View.php7
-rw-r--r--core/libraries/Theme_View.php7
2 files changed, 14 insertions, 0 deletions
diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php
index c172b76b..e9ff9791 100644
--- a/core/libraries/Admin_View.php
+++ b/core/libraries/Admin_View.php
@@ -60,6 +60,13 @@ class Admin_View_Core extends View {
print $menu;
}
+ /**
+ * Print out any messages waiting for this user.
+ */
+ public function messages() {
+ return message::get();
+ }
+
/**
* Handle all theme functions that insert module content.
*/
diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php
index 3144ca2a..030e564d 100644
--- a/core/libraries/Theme_View.php
+++ b/core/libraries/Theme_View.php
@@ -85,6 +85,13 @@ class Theme_View_Core extends View {
}
/**
+ * Print out any messages waiting for this user.
+ */
+ public function messages() {
+ return message::get();
+ }
+
+ /**
* Handle all theme functions that insert module content.
*/
public function __call($function, $args) {