Feature #16920 » 0004886_3.patch

Administrator Admin, 2007-02-03 17:07

View differences:

typo3/mod/tools/em/class.em_index.php (Arbeitskopie)
525 525
		$this->content.=$this->doc->header('Extension Manager');
526 526
		$this->content.=$this->doc->spacer(5);
527 527

  
528
			// Show a link to reload the backend if a new module was installed:
529
		if ($this->CMD['reloadBELink']) {
530
			$content =
531
				'<a href="#" onclick="top.location.reload()">' .
532
					'Click here to reload the backend to enable newly installed module(s): ' .
533
					'<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/refresh_n.gif','width="14" height="14"').' title="Reload backend view" alt="" />' .
534
				'</a>';
535
			$this->content.=$this->doc->section('New Backend Module was installed:',$content,0,1);
536
			$this->content.=$this->doc->spacer(30);
537
		}
538

  
528 539
		// Commands given which is executed regardless of main menu setting:
529 540
		if ($this->CMD['showExt'])	{	// Show details for a single extension
530 541
			$this->showExtDetails($this->CMD['showExt']);
......
1930 1941
							if($this->CMD['standAlone'] || t3lib_div::_GP('standAlone')) {
1931 1942
								$this->content .= 'Extension has been '.($this->CMD['load'] ? 'installed' : 'removed').'.<br /><br /><a href="javascript:opener.top.content.document.forms[0].submit();window.close();">Close window and recheck dependencies</a>';
1932 1943
							} else {
1944
									// Determine if new modules were installed:
1945
								$techInfo = $this->makeDetailedExtensionAnalysis($extKey, $list[$extKey]);
1946
								if ($this->CMD['load'] && is_array($techInfo['flags']) && in_array('Module', $techInfo['flags'], true)) {
1947
									$vA['CMD']['reloadBELink']=1;
1948
								}
1933 1949
								header('Location: '.t3lib_div::linkThisScript($vA));
1934 1950
							}
1935 1951
						}
(3-3/3)