1. Michael Manfre
  2. xpattern

Commits

Eric  committed 52bb2cc

prefs cleanup. merged some txp changes w/ xpat.

  • Participants
  • Parent commits 13faeef
  • Branches default

Comments (0)

Files changed (1)

File textpattern/include/txp_prefs.php

View file
 
 	function prefs_list($message = '')
 	{
-		global $textarray;
-
+		global $prefs;
+		extract($prefs);
+		
 		echo pagetop(gTxt('edit_preferences'), $message).
 			 n.t.'<div id="content" class="clearfix prefs">'.n.
 		       t.'<h1>'.gTxt('edit_preferences').'</h1>';
 
-		extract(get_prefs());
-
 		$locale = setlocale(LC_ALL, $locale);
-		$textarray = load_lang($language);
 
 		echo n.n.'<form method="post" action="index.php">'.
 			prefs_nav().
 
 	function advanced_prefs($message = '')
 	{
-		global $textarray;
-
 		echo pagetop(gTxt('edit_preferences'), $message).
 			 n.t.'<div id="content" class="clearfix prefs">'.n.
 		       t.'<h1>'.gTxt('edit_preferences').'</h1>';