1. Sergey Romanenko
  2. Monstra

Commits

Sergey Romanenko  committed ceb3de2

Improve content filtering.

  • Participants
  • Parent commits 0a7c7e5
  • Branches default

Comments (0)

Files changed (2)

File monstra/engine/site.php

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

File plugins/box/pages/pages.plugin.php

View file
          *
          * @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'));
         }