Commits

Sergey Romanenko committed ceb3de2

Improve content filtering.

Comments (0)

Files changed (2)

monstra/engine/site.php

             // Get content            
             $content = call_user_func(ucfirst(Uri::command()).'::content');
             
-            return $content;
-        }    
+            return Filter::apply('content', $content);
+        }
 
 
         /**

plugins/box/pages/pages.plugin.php

          *
          * @return string
          */
-        public static function content() {              
-            return Filter::apply('content', Text::toHtml(File::getContent(STORAGE . DS . 'pages' . DS . Pages::$page['id'] . '.page.txt')));
+        public static function content() {
+            return Text::toHtml(File::getContent(STORAGE . DS . 'pages' . DS . Pages::$page['id'] . '.page.txt'));
         }