From 15103123c8b2adcfdb428f1a7317a4e15f228a9a Mon Sep 17 00:00:00 2001 From: Harris Wong Date: Fri, 8 Oct 2010 19:52:46 +0000 Subject: [PATCH] -fixed the caller to formatContent and convertYoutubePlayURLToWatchURL --- docs/home/editor/editor_tab_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/home/editor/editor_tab_functions.inc.php b/docs/home/editor/editor_tab_functions.inc.php index fb004e2..ca08335 100644 --- a/docs/home/editor/editor_tab_functions.inc.php +++ b/docs/home/editor/editor_tab_functions.inc.php @@ -97,7 +97,7 @@ function populate_a4a($cid, $content, $formatting){ include_once(TR_INCLUDE_PATH.'classes/XML/XML_HTMLSax/XML_HTMLSax.php'); /* for XML_HTMLSax */ include_once(TR_INCLUDE_PATH.'classes/ContentOutputParser.class.php'); /* for parser */ - $body = format_content($content, $formatting,array()); + $body = ContentUtility::formatContent($content, $formatting,array()); $handler = new ContentOutputParser(); $parser = new XML_HTMLSax(); @@ -123,7 +123,7 @@ function populate_a4a($cid, $content, $formatting){ // that the parsed-out url (http://www.youtube.com/v/a0ryB0m0MiM) does not match with // the URL saved in content table (http://www.youtube.com/watch?v=a0ryB0m0MiM). // The code below is to convert the URL back to original. - $file = convertYoutubePlayURLToWatchURL($file); + $file = ContentUtility::convertYoutubePlayURLToWatchURL($file); $resources[] = convertAmp($file); // converts & to & } -- 2.17.1