Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 34 files changed
  • 0 comments
  • 1 contributor
Jun 14, 2011
Leonardo Sapiras Navlinks refactor - 1
-Refactored the files that have navlinks.
-Fixed wrong navlinks code.
0f927c2
Leonardo Sapiras Navlinks refactor - 2
-Refactored Misc->printNavLinks.
-Refactored Example->add_plugin_navlinks.
-Created Example->show_databases_extension.
-Created Example->show_display_extension.
-Created new entries in languages files of Example.
fd24587
Leonardo Sapiras New comments for Example's methods. 54ce3db
4  aggregates.php
@@ -263,7 +263,7 @@ function doProperties($msg = '') {
263 263
 			'content' => $lang['strdrop']
264 264
 		);
265 265
 
266  
-		$misc->printNavLinks($navlinks);
  266
+		$misc->printNavLinks($navlinks, 'aggregates-properties');
267 267
 	}
268 268
 
269 269
 
@@ -330,7 +330,7 @@ function doDefault($msg = '') {
330 330
 				'content' => $lang['strcreateaggregate']
331 331
 			)
332 332
 		);
333  
-		$misc->printNavLinks($navlinks);
  333
+		$misc->printNavLinks($navlinks, 'aggregates-aggregates');
334 334
 	}
335 335
 
336 336
 	/**
3  all_db.php
@@ -433,8 +433,7 @@ function doDefault($msg = '') {
433 433
 				'content' => $lang['strcreatedatabase']
434 434
 			)
435 435
 		);
436  
-		$misc->printNavLinks($navlinks);
437  
-
  436
+		$misc->printNavLinks($navlinks, 'all_db-databases');
438 437
 	}
439 438
 
440 439
 	function doTree() {
9  classes/Misc.php
@@ -1185,7 +1185,9 @@ function getTopLinks() {
1185 1185
 		/**
1186 1186
 		 * Display the navlinks
1187 1187
 		 *
1188  
-		 * @param $navlinks - An array with the the attributes and values that will be shown. 
  1188
+		 * @param $navlinks - An array with the the attributes and values that will be shown.
  1189
+		 * @param $place - Place where the $navlinks are displayed. Like 'display-browse', where 'display' is the file (display.php)
  1190
+		 * and 'browse' is the place inside that code (doBrowse).
1189 1191
 		 *
1190 1192
 		 * $navlinks = array (
1191 1193
 		 *	array (
@@ -1197,12 +1199,13 @@ function getTopLinks() {
1197 1199
 		 *	)
1198 1200
 		 * );
1199 1201
 		 */
1200  
-		function printNavLinks($navlinks=array()) {
  1202
+		function printNavLinks($navlinks=array(), $place) {
1201 1203
 			global $plugin_manager;
1202 1204
 
1203 1205
 			// Navlinks hook's place
1204 1206
 			$plugin_functions_parameters = array(
1205  
-				'navlinks' => &$navlinks
  1207
+				'navlinks' => &$navlinks,
  1208
+				'place' => $place
1206 1209
 			);
1207 1210
 			$plugin_manager->do_hook('navlinks', $plugin_functions_parameters);
1208 1211
 			
4  colproperties.php
@@ -278,9 +278,7 @@ function attPre(&$rowdata) {
278 278
 				);
279 279
 
280 280
 			}
281  
-			$misc->printNavLinks($navlinks);
282  
-			
283  
-			
  281
+			$misc->printNavLinks($navlinks, 'colproperties-colproperties');
284 282
 		}
285 283
 	}
286 284
 
2  constraints.php
@@ -487,7 +487,7 @@ function cnPre(&$rowdata) {
487 487
 				'content' => $lang['straddfk']
488 488
 			)
489 489
 		);
490  
-		$misc->printNavLinks($navlinks);
  490
+		$misc->printNavLinks($navlinks, 'constraints-constraints');
491 491
 	}
492 492
 
493 493
 	function doTree() {
2  display.php
@@ -643,7 +643,7 @@ function doBrowse($msg = '') {
643 643
 			'content' => $lang['strrefresh']
644 644
 		);
645 645
 
646  
-		$misc->printNavLinks($navlinks);
  646
+		$misc->printNavLinks($navlinks, 'display-browse');
647 647
 	}
648 648
 
649 649
 
11  domains.php
@@ -246,7 +246,7 @@ function doProperties($msg = '') {
246 246
 				'content' => $lang['stralter']
247 247
 			);
248 248
 		}
249  
-		$misc->printNavLinks($navlinks);
  249
+		$misc->printNavLinks($navlinks, 'domains-properties');
250 250
 	}
251 251
 	
252 252
 	/**
@@ -429,8 +429,13 @@ function doDefault($msg = '') {
429 429
 		
430 430
 		$misc->printTable($domains, $columns, $actions, $lang['strnodomains']);
431 431
 		
432  
-		echo "<p><a class=\"navlink\" href=\"domains.php?action=create&amp;{$misc->href}\">{$lang['strcreatedomain']}</a></p>\n";
433  
-
  432
+		$navlinks = array (
  433
+			array (
  434
+				'attr'=> array ('href' => "domains.php?action=create&amp;{$misc->href}"),
  435
+				'content' => $lang['strcreatedomain']
  436
+			)
  437
+		);
  438
+		$misc->printNavLinks($navlinks, 'domains-domains');
434 439
 	}
435 440
 	
436 441
 	/**
8  fulltext.php
@@ -64,7 +64,7 @@ function doDefault($msg = '') {
64 64
 				'content' => $lang['strftscreateconfig']
65 65
 			)
66 66
 		);
67  
-		$misc->printNavLinks($navlinks);
  67
+		$misc->printNavLinks($navlinks, 'fulltext-fulltext');
68 68
 	}
69 69
 
70 70
 	function doDropConfig($confirm) {
@@ -354,7 +354,7 @@ function doViewParsers($msg = '') {
354 354
 		//		'content' => $lang['strftscreateparser']
355 355
 		//	)
356 356
 		//);
357  
-		//$misc->printNavLinks($navlinks);
  357
+		//$misc->printNavLinks($navlinks, 'fulltext-viewparsers');
358 358
 	}
359 359
 
360 360
 
@@ -411,7 +411,7 @@ function doViewDicts($msg = '') {
411 411
 				'content' => $lang['strftscreatedict']
412 412
 			)
413 413
 		);
414  
-		$misc->printNavLinks($navlinks);
  414
+		$misc->printNavLinks($navlinks, 'fulltext-viewdicts');
415 415
 	}
416 416
 
417 417
 
@@ -478,7 +478,7 @@ function doViewConfig($ftscfg, $msg = '') {
478 478
 				'content' => $lang['strftsaddmapping']
479 479
 			)
480 480
 		);
481  
-		$misc->printNavLinks($navlinks);
  481
+		$misc->printNavLinks($navlinks, 'fulltext-viewconfig');
482 482
 	}
483 483
 
484 484
 	/**
4  functions.php
@@ -338,7 +338,7 @@ function doProperties($msg = '') {
338 338
 				'content' => $lang['strdrop']
339 339
 			)
340 340
 		);
341  
-		$misc->printNavLinks($navlinks);
  341
+		$misc->printNavLinks($navlinks, 'functions-properties');
342 342
 	}
343 343
 
344 344
 	/**
@@ -845,7 +845,7 @@ function doDefault($msg = '') {
845 845
 				'content' => $lang['strcreatecfunction']
846 846
 			)
847 847
 		);
848  
-		$misc->printNavLinks($navlinks);
  848
+		$misc->printNavLinks($navlinks, 'functions-functions');
849 849
 	}
850 850
 
851 851
 	/**
5  groups.php
@@ -111,7 +111,7 @@ function doProperties($msg = '') {
111 111
 				'content' => $lang['strshowallgroups']
112 112
 			)
113 113
 		);
114  
-		$misc->printNavLinks($navlinks);
  114
+		$misc->printNavLinks($navlinks, 'groups-properties');
115 115
 	}
116 116
 	
117 117
 	/**
@@ -249,8 +249,7 @@ function doDefault($msg = '') {
249 249
 				'content' => $lang['strcreategroup']
250 250
 			)
251 251
 		);
252  
-		$misc->printNavLinks($navlinks);
253  
-
  252
+		$misc->printNavLinks($navlinks, 'groups-groups');
254 253
 	}
255 254
 
256 255
 	$misc->printHeader($lang['strgroups']);
2  history.php
@@ -84,7 +84,7 @@ function doDefault() {
84 84
 			'attr'=> array ('href' => "history.php?action=download&amp;{$misc->href}"),
85 85
 			'content' => $lang['strdownload']
86 86
 		);
87  
-		$misc->printNavLinks($navlinks);
  87
+		$misc->printNavLinks($navlinks, 'history-history');
88 88
 	}
89 89
 
90 90
 	function doDelHistory($qid, $confirm) {
2  indexes.php
@@ -317,7 +317,7 @@ function indPre(&$rowdata, $actions) {
317 317
 				'content' => $lang['strcreateindex']
318 318
 			)
319 319
 		);
320  
-		$misc->printNavLinks($navlinks);
  320
+		$misc->printNavLinks($navlinks, 'indexes-indexes');
321 321
 	}
322 322
 
323 323
 	function doTree() {
2  operators.php
@@ -70,7 +70,7 @@ function doProperties($msg = '') {
70 70
 					'content' => $lang['strshowalloperators']
71 71
 				)
72 72
 			);
73  
-			$misc->printNavLinks($navlinks);
  73
+			$misc->printNavLinks($navlinks, 'operators-properties');
74 74
 		}
75 75
 		else
76 76
 			doDefault($lang['strinvalidparam']);
2  plugins/Example/lang/english.php
@@ -16,6 +16,8 @@
16 16
 	$plugin_lang['strlinklevel2'] = 'Level 2';
17 17
 	$plugin_lang['strlinklevel3'] = 'Level 3';
18 18
 	$plugin_lang['strlinklevel4'] = 'Level 4';
  19
+	$plugin_lang['strdisplayext'] = 'Display extension';
  20
+	$plugin_lang['strdbext'] = 'Databases extension';
19 21
 
20 22
 	//Pages
21 23
 	$plugin_lang['strdesclevel2'] = 'This is the level 2';
2  plugins/Example/lang/portuguese-br.php
@@ -16,6 +16,8 @@
16 16
 	$plugin_lang['strlinklevel2'] = 'Nível 2';
17 17
 	$plugin_lang['strlinklevel3'] = 'Nível 3';
18 18
 	$plugin_lang['strlinklevel4'] = 'Nível 4';
  19
+	$plugin_lang['strdisplayext'] = 'Extensão de exibição';
  20
+	$plugin_lang['strdbext'] = 'Extensão das bases de dados';
19 21
 
20 22
 	//Paginas
21 23
 	$plugin_lang['strdesclevel2'] = 'Este é o nível 2';
2  plugins/Example/lang/recoded/english.php
@@ -16,6 +16,8 @@
16 16
 	$plugin_lang['strlinklevel2'] = 'Level 2';
17 17
 	$plugin_lang['strlinklevel3'] = 'Level 3';
18 18
 	$plugin_lang['strlinklevel4'] = 'Level 4';
  19
+	$plugin_lang['strdisplayext'] = 'Display extension';
  20
+	$plugin_lang['strdbext'] = 'Databases extension';
19 21
 
20 22
 	//Pages
21 23
 	$plugin_lang['strdesclevel2'] = 'This is the level 2';
2  plugins/Example/lang/recoded/portuguese-br.php
@@ -16,6 +16,8 @@
16 16
 	$plugin_lang['strlinklevel2'] = 'N&#237;vel 2';
17 17
 	$plugin_lang['strlinklevel3'] = 'N&#237;vel 3';
18 18
 	$plugin_lang['strlinklevel4'] = 'N&#237;vel 4';
  19
+	$plugin_lang['strdisplayext'] = 'Extens&#227;o de exibi&#231;&#227;o';
  20
+	$plugin_lang['strdbext'] = 'Extens&#227;o das bases de dados';
19 21
 
20 22
 	//Paginas
21 23
 	$plugin_lang['strdesclevel2'] = 'Este &#233; o n&#237;vel 2';
90  plugins/Example/plugin.php
@@ -59,7 +59,9 @@ function get_actions() {
59 59
 			'show_page',
60 60
 			'show_level_2',
61 61
 			'show_level_3',
62  
-			'show_level_4'
  62
+			'show_level_4',
  63
+			'show_display_extension',
  64
+			'show_databases_extension'
63 65
 		);
64 66
 		return $actions;
65 67
 	}
@@ -166,18 +168,40 @@ function add_plugin_trail(&$plugin_functions_parameters) {
166 168
 	function add_plugin_navlinks(&$plugin_functions_parameters) {
167 169
 		global $misc;
168 170
 
169  
-		$href = "plugin.php?".$misc->href;
170  
-		$href.= "&plugin=".urlencode($this->name);
171  
-		$href.= "&subject=server";
172  
-		$href.= "&action=show_page";
  171
+		$navlinks = array();
  172
+		switch ($plugin_functions_parameters['place']) {
173 173
 
174  
-		$navlinks  = array (
175  
-				'attr'=> array ('href' => $href),
176  
-				'content' => $this->lang['strdescription']
177  
-		);
  174
+			case 'display-browse':
  175
+				$href = "plugin.php?".$misc->href;
  176
+				$href.= "&amp;plugin=".urlencode($this->name);
  177
+				$href.= "&amp;subject=show_page";
  178
+				$href.= "&amp;action=show_display_extension";
  179
+				$href.= "&amp;database=".urlencode($_REQUEST['database']);
  180
+				$href.= "&amp;table=".urlencode($_REQUEST['table']);
178 181
 
179  
-		//Add the link in the toplinks array
180  
-		$plugin_functions_parameters['navlinks'][] = $navlinks;
  182
+				$navlinks[] = array (
  183
+					'attr'=> array ('href' => $href),
  184
+					'content' => $this->lang['strdisplayext']
  185
+				);
  186
+				break;
  187
+
  188
+			case 'all_db-databases':
  189
+				$href = "plugin.php?".$misc->href;
  190
+				$href.= "&amp;plugin=".urlencode($this->name);
  191
+				$href.= "&amp;subject=show_page";
  192
+				$href.= "&amp;action=show_databases_extension";
  193
+
  194
+				$navlinks[] = array (
  195
+					'attr'=> array ('href' => $href),
  196
+					'content' => $this->lang['strdbext']
  197
+				);
  198
+				break;
  199
+		}
  200
+
  201
+		if (count($navlinks) > 0) {
  202
+			//Merge the original navlinks array with Examples' navlinks 
  203
+			$plugin_functions_parameters['navlinks'] = array_merge($plugin_functions_parameters['navlinks'], $navlinks);
  204
+		}
181 205
 	}
182 206
 
183 207
 	/**
@@ -311,5 +335,49 @@ function show_level_4() {
311 335
 
312 336
 		$misc->printFooter();
313 337
 	}
  338
+	
  339
+	/**
  340
+	 * Simple example of how to put a hook in the display page.
  341
+	 */
  342
+	function show_display_extension() {
  343
+		global $lang, $misc;
  344
+
  345
+		$misc->printHeader($lang['strdatabase']);
  346
+		$misc->printBody();
  347
+		$misc->printTrail($_REQUEST['subject']);
  348
+
  349
+		echo "<div>{$this->lang['strdisplayext']}</div>\n";
  350
+		echo "<br/>\n";
  351
+
  352
+		$back_link = "<a href=\"display.php?{$misc->href}";
  353
+		$back_link.= "&amp;table=".urlencode($_REQUEST['table']);
  354
+		$back_link.= "&amp;subject=table\">";
  355
+		$back_link.= $lang['strback'];
  356
+		$back_link.= "</a>\n";
  357
+		echo $back_link;
  358
+
  359
+		$misc->printFooter();
  360
+	}
  361
+
  362
+	/**
  363
+	 * Simple example of how to put a hook in the databases list page.
  364
+	 */
  365
+	function show_databases_extension() {
  366
+		global $lang, $misc;
  367
+
  368
+		$misc->printHeader($lang['strdatabase']);
  369
+		$misc->printBody();
  370
+		$misc->printTrail($_REQUEST['subject']);
  371
+
  372
+		echo "<div>{$this->lang['strdbext']}</div>\n";
  373
+		echo "<br/>\n";
  374
+
  375
+		$back_link = "<a href=\"all_db.php?{$misc->href}\">";
  376
+		$back_link.= $lang['strback'];
  377
+		$back_link.= "</a>\n";
  378
+		echo $back_link;
  379
+
  380
+		$misc->printFooter();
  381
+	}
314 382
 }
315 383
 ?>
2  privileges.php
@@ -277,7 +277,7 @@ function doDefault($msg = '') {
277 277
 			);
278 278
 		}
279 279
 
280  
-		$misc->printNavLinks($navlinks);
  280
+		$misc->printNavLinks($navlinks, 'privileges-privileges');
281 281
 	}
282 282
 
283 283
 	$misc->printHeader($lang['strprivileges']);
2  reports.php
@@ -130,7 +130,7 @@ function doProperties($msg = '') {
130 130
 				'content' => $lang['stredit']
131 131
 			)
132 132
 		);
133  
-		$misc->printNavLinks($navlinks);
  133
+		$misc->printNavLinks($navlinks, 'reports-properties');
134 134
 	}
135 135
 
136 136
 	/**
7  roles.php
@@ -438,7 +438,7 @@ function doProperties($msg = '') {
438 438
 			)
439 439
 		);
440 440
 
441  
-		$misc->printNavLinks($navlinks);
  441
+		$misc->printNavLinks($navlinks, 'roles-properties');
442 442
 	}
443 443
 
444 444
 	/**
@@ -493,7 +493,7 @@ function doAccount($msg = '') {
493 493
 				'content' => $lang['strchangepassword']
494 494
 			)
495 495
 		);
496  
-		$misc->printNavLinks($navlinks);
  496
+		$misc->printNavLinks($navlinks, 'roles-account');
497 497
 	}
498 498
 	
499 499
 	/**
@@ -639,8 +639,7 @@ function renderRoleExpires($val) {
639 639
 				'content' => $lang['strcreaterole']
640 640
 			)
641 641
 		);
642  
-		$misc->printNavLinks($navlinks);
643  
-
  642
+		$misc->printNavLinks($navlinks, 'roles-roles');
644 643
 	}
645 644
 
646 645
 	$misc->printHeader($lang['strroles']);
2  rules.php
@@ -163,7 +163,7 @@ function doDefault($msg = '') {
163 163
 				'content' => $lang['strcreaterule']
164 164
 			)
165 165
 		);
166  
-		$misc->printNavLinks($navlinks);
  166
+		$misc->printNavLinks($navlinks, 'rules-rules');
167 167
 	}
168 168
 
169 169
 	function doTree() {
2  schemas.php
@@ -79,7 +79,7 @@ function doDefault($msg = '') {
79 79
 				'content' => $lang['strcreateschema']
80 80
 			)
81 81
 		);
82  
-		$misc->printNavLinks($navlinks);
  82
+		$misc->printNavLinks($navlinks, 'schemas-schemas');
83 83
 	}
84 84
 
85 85
 	/**
5  sequences.php
@@ -77,7 +77,7 @@ function doDefault($msg = '')	{
77 77
 				'content' => $lang['strcreatesequence']
78 78
 			)
79 79
 		);
80  
-		$misc->printNavLinks($navlinks);
  80
+		$misc->printNavLinks($navlinks, 'sequences-sequences');
81 81
 	}
82 82
 
83 83
 	/**
@@ -170,7 +170,7 @@ function doProperties($msg = '') {
170 170
 					'content' => $lang['strnextval']
171 171
 				)
172 172
 			);
173  
-			$misc->printNavLinks($navlinks);
  173
+
174 174
 			if ($data->hasAlterSequenceStart()) {
175 175
 				$navlinks[] = array (
176 176
 					'attr'=> array ('href' => "sequences.php?action=restart&amp;{$misc->href}&amp;sequence=", urlencode($sequence->fields['seqname'])),
@@ -185,6 +185,7 @@ function doProperties($msg = '') {
185 185
 				'attr'=> array ('href' => "sequences.php?{$misc->href}"),
186 186
 				'content' => $lang['strshowallsequences']
187 187
 			);
  188
+			$misc->printNavLinks($navlinks, 'sequences-properties');
188 189
 		}
189 190
 		else echo "<p>{$lang['strnodata']}</p>\n";
190 191
 	}
2  servers.php
@@ -95,7 +95,7 @@ function svPre(&$rowdata, $actions) {
95 95
 					'content' => htmlentities($grp['desc'])
96 96
 				);
97 97
 			}
98  
-			$misc->printNavLinks($navlinks);
  98
+			$misc->printNavLinks($navlinks, 'servers-servers');
99 99
 		}
100 100
 	}
101 101
 	
2  sql.php
@@ -231,7 +231,7 @@ function sqlCallback($query, $rs, $lineno) {
231 231
 			'content' => $lang['strdownload']
232 232
 		);
233 233
 	}
234  
-	$misc->printNavLinks($navlinks);
  234
+	$misc->printNavLinks($navlinks, 'sql');
235 235
 
236 236
 	$misc->printFooter();
237 237
 ?>
2  tables.php
@@ -840,7 +840,7 @@ function doDefault($msg = '') {
840 840
 			);
841 841
 		}
842 842
 
843  
-		$misc->printNavLinks($navlinks);
  843
+		$misc->printNavLinks($navlinks, 'tables-tables');
844 844
 	}
845 845
 	
846 846
 	require('./admin.php');
3  tablespaces.php
@@ -262,8 +262,7 @@ function doDefault($msg = '') {
262 262
 				'content' => $lang['strcreatetablespace']
263 263
 			)
264 264
 		);
265  
-		$misc->printNavLinks($navlinks);
266  
-
  265
+		$misc->printNavLinks($navlinks, 'tablespaces-tablespaces');
267 266
 	}
268 267
 
269 268
 	$misc->printHeader($lang['strtablespaces']);
2  tblproperties.php
@@ -591,7 +591,7 @@ function cstrRender($s, $p) {
591 591
 				'content' => $lang['stralter']
592 592
 			)
593 593
 		);
594  
-		$misc->printNavLinks($navlinks);
  594
+		$misc->printNavLinks($navlinks, 'tblproperties-tblproperties');
595 595
 	}
596 596
 
597 597
 	$misc->printHeader($lang['strtables'] . ' - ' . $_REQUEST['table']);
2  triggers.php
@@ -337,7 +337,7 @@ function tgPre(&$rowdata,$actions) {
337 337
 				'content' => $lang['strcreatetrigger']
338 338
 			)
339 339
 		);
340  
-		$misc->printNavLinks($navlinks);
  340
+		$misc->printNavLinks($navlinks, 'triggers-triggers');
341 341
 	}
342 342
 
343 343
 	function doTree() {
4  types.php
@@ -91,7 +91,7 @@ function attPre(&$rowdata) {
91 91
 					'content' => $lang['strshowalltypes']
92 92
 				)
93 93
 			);
94  
-			$misc->printNavLinks($navlinks);
  94
+			$misc->printNavLinks($navlinks, 'types-properties');
95 95
 		} else
96 96
 			doDefault($lang['strinvalidparam']);
97 97
 	}
@@ -597,7 +597,7 @@ function doDefault($msg = '') {
597 597
 				'content' => $lang['strcreateenumtype']
598 598
 			);
599 599
 		}
600  
-		$misc->printNavLinks($navlinks);
  600
+		$misc->printNavLinks($navlinks, 'types-types');
601 601
 	}
602 602
 	
603 603
 	/**
5  users.php
@@ -53,7 +53,7 @@ function doAccount($msg = '') {
53 53
 				'content' => $lang['strchangepassword']
54 54
 			)
55 55
 		);
56  
-		$misc->printNavLinks($navlinks);
  56
+		$misc->printNavLinks($navlinks, 'users-account');
57 57
 	}
58 58
 	
59 59
 	/**
@@ -342,8 +342,7 @@ function renderUseExpires($val) {
342 342
 				'content' => $lang['strcreateuser']
343 343
 			)
344 344
 		);
345  
-		$misc->printNavLinks($navlinks);
346  
-
  345
+		$misc->printNavLinks($navlinks, 'users-users');
347 346
 	}
348 347
 
349 348
 	$misc->printHeader($lang['strusers']);
4  viewproperties.php
@@ -156,7 +156,7 @@ function doDefinition($msg = '') {
156 156
 				'content' => $lang['stralter']
157 157
 			)
158 158
 		);
159  
-		$misc->printNavLinks($navlinks);
  159
+		$misc->printNavLinks($navlinks, 'viewproperties-definition');
160 160
 	}
161 161
 
162 162
 	/**
@@ -450,7 +450,7 @@ function attPre(&$rowdata) {
450 450
 				'content' => $lang['stralter']
451 451
 			)
452 452
 		);
453  
-		$misc->printNavLinks($navlinks);
  453
+		$misc->printNavLinks($navlinks, 'viewproperties-viewproperties');
454 454
 	}
455 455
 
456 456
 	$misc->printHeader($lang['strviews'] . ' - ' . $_REQUEST['view']);
2  views.php
@@ -628,7 +628,7 @@ function doDefault($msg = '') {
628 628
 				'content' => $lang['strcreateviewwiz']
629 629
 			)
630 630
 		);
631  
-		$misc->printNavLinks($navlinks);
  631
+		$misc->printNavLinks($navlinks, 'views-views');
632 632
 	}
633 633
 	
634 634
 	/**

No commit comments for this range

Something went wrong with that request. Please try again.