Project

General

Profile

« Previous | Next » 

Revision 944

Added by Matthias almost 16 years ago

added skinable Admin Interface

View differences:

class.wb.php
277 277
		$redirect_timer = ($results) ? $results : '1500';
278 278

  
279 279
		// add template variables
280
		$success_template = new Template(ADMIN_PATH.'/interface');
281
		$success_template->set_file('page', 'success.html');
280
		$success_template = new Template(THEME_PATH.'/templates');
281
		$success_template->set_file('page', 'success.htt');
282 282
		$success_template->set_block('page', 'main_block', 'main');
283 283
		$success_template->set_var('MESSAGE', $message);
284 284
		$success_template->set_var('REDIRECT', $redirect);
......
291 291
	// Print an error message
292 292
	function print_error($message, $link = 'index.php', $auto_footer = true) {
293 293
		global $TEXT;
294
		$success_template = new Template(ADMIN_PATH.'/interface');
295
		$success_template->set_file('page', 'error.html');
294
		$success_template = new Template(THEME_PATH.'/templates');
295
		$success_template->set_file('page', 'error.htt');
296 296
		$success_template->set_block('page', 'main_block', 'main');
297 297
		$success_template->set_var('MESSAGE', $message);
298 298
		$success_template->set_var('LINK', $link);

Also available in: Unified diff