Project

General

Profile

« Previous | Next » 

Revision 59

Added by stefan about 19 years ago

Fixed missing parent option 'none' - ticket #12 - and a minor scope bug.

View differences:

trunk/CHANGELOG
12 12

  
13 13
------------------------------------- 2.6.0 -------------------------------------
14 14
09-Sep-2005 Stefan Braunewell
15
#	Fixed missing parent option 'none' - ticket #12 - and a minor scope bug.
15 16
+	Added breadcrumbs code. Call using $wb->breadcrumbs().
16 17
+	Added utf-8 character encoding meta tag into all stock templates.
17 18
-/!	Removed initialize.php again, initialization now takes place in
trunk/wb/admin/pages/settings.php
249 249
			// Title -'s prefix
250 250
			$title_prefix = '';
251 251
			for($i = 1; $i <= $page['level']; $i++) { $title_prefix .= ' - '; }
252
				$template->set_var(array(
253
												'ID' => $page['page_id'],
254
												'TITLE' => $admin->strip_slashes_dummy($title_prefix.$page['page_title'])
255
												)
256
										);
257
				if($results_array['parent'] == $page['page_id']) {
258
					$template->set_var('SELECTED', ' selected');
259
				} elseif($results_array['page_id'] == $page['page_id']) {
260
					$template->set_var('SELECTED', ' disabled');
261
					$list_next_level=false;
262
				} elseif($can_modify != true) {
263
					$template->set_var('SELECTED', ' disabled');
264
				} else {
265
					$template->set_var('SELECTED', '');
266
				}
267
				$template->parse('page_list2', 'page_list_block2', true);
252
			$template->set_var(array(
253
											'ID' => $page['page_id'],
254
											'TITLE' => $admin->strip_slashes_dummy($title_prefix.$page['page_title'])
255
											)
256
									);
257
			if($results_array['parent'] == $page['page_id']) {
258
				$template->set_var('SELECTED', ' selected');
259
			} elseif($results_array['page_id'] == $page['page_id']) {
260
				$template->set_var('SELECTED', ' disabled');
261
				$list_next_level=false;
262
			} elseif($can_modify != true) {
263
				$template->set_var('SELECTED', ' disabled');
264
			} else {
265
				$template->set_var('SELECTED', '');
268 266
			}
267
			$template->parse('page_list2', 'page_list_block2', true);
268
		}
269 269
		if ($list_next_level)
270 270
			parent_list($page['page_id']);
271 271
	}
272 272
}
273 273
$template->set_block('main_block', 'page_list_block2', 'page_list2');
274
if($admin->get_permission('pages_add_l0') == true) {
274
if($admin->get_permission('pages_add_l0') == true OR $results_array['level'] == 0) {
275 275
	if($results_array['parent'] == 0) { $selected = ' selected'; } else { $selected = ''; }
276 276
	$template->set_var(array(
277 277
									'ID' => '0',
trunk/wb/framework/class.wb.php
30 30
This class is the basis for admin and frontend classes.
31 31

  
32 32
*/
33
require_once(WB_PATH.'/framework/class.database.php');
34
		
33 35

  
34 36
class wb
35 37
{	
......
39 41
		// set global database variable
40 42
		global $database;
41 43
		// Create database class
42
		require_once(WB_PATH.'/framework/class.database.php');
43 44
		$database = new database();
44 45
		$this->database = $database;
45 46

  

Also available in: Unified diff