Skip to content

Commit

Permalink
refs #1749 : bugfix - Context call missed.
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Feb 16, 2015
1 parent b8d60c7 commit 96608b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/FM_TTML/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
if(!function_exists('FM_TTML_bindAttachments')) require_once 'ttml.php';

function FM_TTML_format($blogid, $id, $content, $keywords = array(), $useAbsolutePath = true, $bRssMode = false) {
$context = Model_Context::getInstance();
$path = __TEXTCUBE_ATTACH_DIR__."/$blogid";
$url = $context->getProperty("service.path")."/attach/$blogid";
$view = FM_TTML_bindAttachments($id, $path, $url, $content, $useAbsolutePath, $bRssMode);
Expand All @@ -14,6 +15,7 @@ function FM_TTML_format($blogid, $id, $content, $keywords = array(), $useAbsolut
}

function FM_TTML_summary($blogid, $id, $content, $keywords = array(), $useAbsolutePath = true) {
$context = Model_Context::getInstance();
$view = FM_TTML_format($blogid, $id, $content, $keywords, $useAbsolutePath, true);
if (!$context->getProperty("blog.publishWholeOnRSS")) $view = UTF8::lessen(removeAllTags(stripHTML($view)), 255);
return $view;
Expand Down
1 change: 1 addition & 0 deletions plugins/FM_Textile/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
if(!class_exists('Textile')) require_once 'classTextile.php';

function FM_Textile_format($blogid, $id, $content, $keywords = array(), $useAbsolutePath = true, $bRssMode = false) {
$context = Model_Context::getInstance();
$textile = new Textile();
$path = __TEXTCUBE_ATTACH_DIR__."/$blogid";
$url = $context->getProperty("service.path")."/attach/$blogid";
Expand Down

0 comments on commit 96608b1

Please sign in to comment.