Pman.php
authorAlan Knowles <alan@roojs.com>
Wed, 7 May 2014 06:39:05 +0000 (14:39 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 7 May 2014 06:39:05 +0000 (14:39 +0800)
Pman.php

index c895368..88d55cb 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -918,6 +918,10 @@ class Pman extends HTML_FlexyFramework_Page
     
     function addEvent($act, $obj = false, $remarks = '') 
     {
+        
+        if (!empty(HTML_FlexyFramework::get()->Pman['disabled_events'])) {
+            return;
+        }
         $au = $this->getAuthUser();
        
         $e = DB_DataObject::factory('Events');