Commits

William Wu  committed 90a73e5

修正 tinyd 無法讓 xoops 2.5.6 首頁正常顯示的問題

  • Participants
  • Parent commits 3c47c5f

Comments (0)

Files changed (1)

File patched_files/2.5.6/modules/tinyd/class/tinyd.textsanitizer.php

      * @static
      * @staticvar   object
 	 */
-        /*
-	function &getInstance()
+	static function getInstance()
 	{
 		static $instance;
 		if (!isset($instance)) {
 		}
 		return $instance;
 	}
-        */
 
 	/**
 	 * Filters textarea form data in DB for display
 	 * @param   bool    $br     convert linebreaks?
 	 * @return  string
 	 **/
-	function displayTarea( $text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1 , $nbsp = 0 )
+	function &displayTarea( $text, $html = 0, $smiley = 1, $xcode = 1, $image = 1, $br = 1 , $nbsp = 0 )
 	{
 		// save "javascript:"
 		$text = preg_replace( "/javascript:/si" , "jjaavvaassccrriipptt::" , $text ) ;