Bug #19968 ยป 0010351.diff

Administrator Admin, 2009-02-04 23:42

View differences:

t3lib/class.t3lib_frontendedit.php (working copy)
122 122
		}
123 123

  
124 124
		if ($GLOBALS['TSFE']->forceTemplateParsing || $GLOBALS['TSFE']->displayEditIcons || $GLOBALS['TSFE']->displayFieldEditIcons) {
125
			$GLOBALS['TSFE']->set_no_cache(); 
125
			$GLOBALS['TSFE']->set_no_cache();
126 126
		}
127 127
	}
128 128

  
......
324 324
	 * @return	string		The setting value
325 325
	 */
326 326
	public function extGetFeAdminValue($pre, $val='') {
327
				// Check if module is enabled.
327
			// Check if module is enabled.
328 328
		if ($this->isAdminModuleEnabled($pre)) {
329 329
				// Exceptions where the values can be overridden from backend:
330 330
				// deprecated
......
394 394
	 ****************************************************/
395 395

  
396 396
	/**
397
	 * Returns true in an edit-action is sent from the Admin Panel
397
	 * Returns true if an edit-action is sent from the Admin Panel
398 398
	 *
399 399
	 * @return	boolean
400 400
	 * @see	index_ts.php
......
424 424
	public function isEditFormShown() {
425 425
		if (is_array($this->TSFE_EDIT)) {
426 426
			$cmd = (string) $this->TSFE_EDIT['cmd'];
427
			if ($cmd=='edit' || $cmd=='new') {
427
			if ($cmd == 'edit' || $cmd == 'new') {
428 428
				return true;
429 429
			}
430 430
		}
......
641 641
			$lang = -1;
642 642
		}
643 643

  
644
		if ($GLOBALS['BE_USER']->checkLanguageAccess($lang)) { 
644
		if ($GLOBALS['BE_USER']->checkLanguageAccess($lang)) {
645 645
			$languageAccess = true;
646 646
		} else {
647 647
			$languageAccess = false;
......
685 685
				$allow = $this->getAllowedEditActions($table, $conf, $dataArray['pid'], $allow);
686 686

  
687 687
					// Can only display editbox if there are options in the menu
688
				if (count($allow)) { 
688
				if (count($allow)) {
689 689
					$mayEdit = true;
690 690
				}
691 691
			} else {
......
698 698

  
699 699
	/**
700 700
	 * Takes an array of generally allowed actions and filters that list based on page and content permissions.
701
	 * 
701
	 *
702 702
	 * @param	string	The name of the table.
703 703
	 * @param	array	The configuration array.
704 704
	 * @param	integer	The PID where editing will occur.
    (1-1/1)