예제 #1
0
	/**
	 * DEPRECIATED: DO NOT USE.
	 * Use: addHeadStyleSheet, addHeadScriptUrl, and other $_CB_framework->document->addHead functions.
	 * This was an temporary function for CB 1.2 RC: DO NOT USE
	 * @since      CB 1.2 RC
	 * @deprecated CB 1.2
	 *
	 * @param      string  $tag
	 * @return     void
	 */
	function addCustomHeadTag( $tag ) {
		global $_CB_framework;

		if ( $_CB_framework->getCfg( 'debug' ) == 1 ) {
			$bt		=	@debug_backtrace();
			trigger_error( sprintf('$_CB_framework->addCustomHeadTag CALLED FROM: %s line %s (function %s). This is old depreciated old CB 1.2 RC API. (Use: addHeadStyleSheet, addHeadScriptUrl, and other $_CB_framework->document->addHead functions).' . "\n", @$bt[0]['file'], @$bt[0]['line'], @$bt[1]['class'] . ':' . @$bt[1]['function'] ), E_USER_WARNING );
		}
		$this->document->addHeadCustomHtml( $tag );
		return null;
	}