irre_7611_rev8536_v2.patch

Administrator Admin, 2010-08-09 11:37

Download (2.2 KB)

View differences:

t3lib/class.t3lib_tceforms_inline.php (working copy)
288 288
			// Render the level links (create new record, localize all, synchronize):
289 289
		if ($config['appearance']['levelLinksPosition']!='none') {
290 290
			$levelLinks = $this->getLevelInteractionLink('newRecord', $nameObject . self::Structure_Separator . $foreign_table, $config);
291
			if ($language>0) {
292
					// Add the "Localize all records" link before all child records:
293
				if (isset($config['appearance']['showAllLocalizationLink']) && $config['appearance']['showAllLocalizationLink']) {
294
					$levelLinks.= $this->getLevelInteractionLink('localize', $nameObject . self::Structure_Separator . $foreign_table, $config);
295
				}
296
					// Add the "Synchronize with default language" link before all child records:
297
				if (isset($config['appearance']['showSynchronizationLink']) && $config['appearance']['showSynchronizationLink']) {
298
					$levelLinks.= $this->getLevelInteractionLink('synchronize', $nameObject . self::Structure_Separator . $foreign_table, $config);
299
				}
300
			}
301 291
		}
302 292
			// Add the level links before all child records:
303 293
		if (in_array($config['appearance']['levelLinksPosition'], array('both', 'top'))) {
304 294
			$item.= $levelLinks;
305 295
		}
296
		
297
		if ($language>0) {
298
			$localizationLinks = "";
299
				// Add the "Localize all records" link before all child records:
300
			if (isset($config['appearance']['showAllLocalizationLink']) && $config['appearance']['showAllLocalizationLink']) {
301
				$localizationLinks .= $this->getLevelInteractionLink('localize', $nameObject . self::Structure_Separator . $foreign_table, $config);
302
			}
303
				// Add the "Synchronize with default language" link before all child records:
304
			if (isset($config['appearance']['showSynchronizationLink']) && $config['appearance']['showSynchronizationLink']) {
305
				$localizationLinks .= $this->getLevelInteractionLink('synchronize', $nameObject . self::Structure_Separator . $foreign_table, $config);
306
			}
307
		}
308
		$item.=$localizationLinks;
309
		
306 310

  
307 311
		$item .= '<div id="'.$nameObject.'_records">';
308 312
		$relationList = array();