Project

General

Profile

« Previous | Next » 

Revision 1057

Added by aldus almost 15 years ago

Changes on the news-modul: uninstall.php, add.php and view.php. See changlog for details.

View differences:

view.php
216 216
				$group_id = $post['group_id'];
217 217
				$group_title = $groups[$group_id]['title'];
218 218
				$group_image = $groups[$group_id]['image'];
219
				if($group_image == '') { $display_image = 'none'; } else { $display_image = ''; }
220
				if($group_id == 0) { $display_group = 'none'; } else { $display_group = ''; }
219
				$display_image = ($group_image == '') ? "none" : "inherit";
220
				$display_group = ($group_id == 0) ? 'none' : 'inherit';
221 221
				// Replace [wblink--PAGE_ID--] with real link
222 222
				$short = ($post['content_short']);
223 223
				$wb->preprocess($short);
......
308 308
			$group_id = $post['group_id'];
309 309
			$group_title = $groups[$group_id]['title'];
310 310
			$group_image = $groups[$group_id]['image'];
311
			if($group_image == '') { $display_image = 'none'; } else { $display_image = ''; }
312
			if($group_id == 0) { $display_group = 'none'; } else { $display_group = ''; }
311
			$display_image = ($group_image == '') ? "none" : "inherit";
312
			$display_group = ($group_id == 0) ? 'none' : 'inherit';
313 313
			$vars = array('[PAGE_TITLE]', '[GROUP_ID]', '[GROUP_TITLE]', '[GROUP_IMAGE]', '[DISPLAY_GROUP]', '[DISPLAY_IMAGE]', '[TITLE]', '[SHORT]', '[BACK]', '[TEXT_BACK]', '[TEXT_LAST_CHANGED]', '[MODI_DATE]', '[TEXT_AT]', '[MODI_TIME]', '[PUBLISHED_DATE]', '[PUBLISHED_TIME]', '[TEXT_POSTED_BY]', '[TEXT_ON]', '[USER_ID]', '[USERNAME]', '[DISPLAY_NAME]', '[EMAIL]');
314 314
			$post_short=$post['content_short'];
315 315
			$wb->preprocess($post_short);
......
366 366
		} else {
367 367
			// Say no comments found
368 368
			if(isset($TEXT['NONE_FOUND'])) {
369
				echo $TEXT['NONE_FOUND'].'<br />';
369
				$content .= "<tr><td>".$TEXT['NONE_FOUND'].'<br /></td></tr>';
370 370
			} else {
371
				echo 'None Found<br />';
371
				$content .= '<tr><td>None Found<br /></td></tr>';
372 372
			}
373 373
		}
374 374
		

Also available in: Unified diff