projects
/
acontent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
74a89c9
)
-fixed the caller to formatContent and convertYoutubePlayURLToWatchURL
author
Harris Wong
<hwong@ocad.ca>
Fri, 8 Oct 2010 19:52:46 +0000
(19:52 -0000)
committer
Harris Wong
<hwong@ocad.ca>
Fri, 8 Oct 2010 19:52:46 +0000
(19:52 -0000)
docs/home/editor/editor_tab_functions.inc.php
patch
|
blob
|
history
diff --git
a/docs/home/editor/editor_tab_functions.inc.php
b/docs/home/editor/editor_tab_functions.inc.php
index
fb004e2
..
ca08335
100644
(file)
--- 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 */
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_c
ontent($content, $formatting,array());
+ $body =
ContentUtility::formatC
ontent($content, $formatting,array());
$handler = new ContentOutputParser();
$parser = new XML_HTMLSax();
$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.
// 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 &
}
$resources[] = convertAmp($file); // converts & to &
}