Bug #24136 ยป 16841.diff

Administrator Admin, 2010-12-27 16:47

View differences:

t3lib/extjs/dataprovider/class.extdirect_dataprovider_backendlivesearch.php (working copy)
45 45
	);
46 46

  
47 47
	/**
48
	 * @var array
49
	 */
50
	protected $helpContent = array(
51
		'title' => 'How to use advanced search tags',
52
		'text' => 'Search in certain tables:<br />page:Home will search for all pages with the title "Home"',
53
		'keys' => array(),
54
	);
55

  
56
	/**
57 48
	 * @var t3lib_search_livesearch
58 49
	 */
59 50
	protected $liveSearch = null;
......
107 98
		return $this->searchResults;
108 99
	}
109 100

  
110
	/**
111
	 * Build up and retrieve the general and custom help text "How can you search"
112
	 *
113
	 * @return array
114
	 */
115
	public function getHelp() {
116
		$content = array();
117
		$this->helpContent['keys'] = $this->getRegisteredHelpContent();
118

  
119
		return $this->helpContent;
120
	}
121

  
122

  
123
	/**
124
	 * Find all registerd help information.
125
	 *
126
	 * @return array All registered help content will collected returned
127
	 * @todo Doesn't actually return any data
128
	 */
129
	public function getRegisteredHelpContent() {
130
		$helpArray = array();
131
		$liveSearchConfiguration = ((is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch'])) ? $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch'] : array());
132

  
133
		foreach ($liveSearchConfiguration as $key => $table) {
134
			$helpArray[] = '#' . $key;
135
		}
136

  
137
		return $helpArray;
138
	}
139

  
140 101
}
141 102

  
142 103
?>
typo3/classes/class.livesearch.php (working copy)
70 70
	public function render() {
71 71
		$this->addJavascriptToBackend();
72 72
		return '<div class="live-search-wrapper">
73
					<span title="Search" class="t3-icon t3-icon-apps t3-icon-apps-toolbar t3-icon-toolbar-menu-search">&nbsp;</span>
73
					<span title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:search') .'" class="t3-icon t3-icon-apps t3-icon-apps-toolbar t3-icon-toolbar-menu-search">&nbsp;</span>
74 74
					<input id="live-search-box" />
75 75
				</div>';
76 76
	}
    (1-1/1)