[Phpslash-commit] CVS: phpslash-ft/class Author.class,1.35,1.36
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-01-10 19:05:56
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory sc8-pr-cvs1:/tmp/cvs-serv7292/phpslash-ft/class Modified Files: Author.class Log Message: prefs when logged out fix Index: Author.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Author.class,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** Author.class 20 Dec 2002 22:17:28 -0000 1.35 --- Author.class 10 Jan 2003 19:05:53 -0000 1.36 *************** *** 575,593 **** function editAuthor($id, $tpl='') { ! $default_tpl = "newauthor"; $count = ''; ! if( empty($tpl) ) { ! $template = $default_tpl; ! } elseif ( file_exists($this->psl['templatedir'] . "/" . basename($tpl) . ".tpl") ) { ! $tpl_file = basename($tpl) . ".tpl"; ! $this->author_templ->set_file(array( ! "template" => "$tpl_file" ! )); ! $template = "template"; } else { ! debug ( "Story.class::getStory:Template file doesn't exist, using default instead", $tpl); ! $template = $default_tpl; ! } $q = "SELECT * --- 575,587 ---- function editAuthor($id, $tpl='') { ! $default_template = "newauthor.tpl"; $count = ''; ! if( $tpl == '') { ! $this->author_templ->set_file( 'template', $default_template); ! } elseif ( $this->author_templ->set_file('template' , basename($tpl) . ".tpl" )) { } else { ! $this->author_templ->set_file( 'template', $default_template); ! } $q = "SELECT * *************** *** 735,741 **** } } ! $this->author_templ = displayoptions('author', $this->author_templ, $template, $temparray); ! return $this->author_templ->parse('OUT',$template); // $this->author_templ->p('OUT'); --- 729,735 ---- } } ! $this->author_templ = displayoptions('author', $this->author_templ, 'template', $temparray); ! return $this->author_templ->parse('OUT','template'); // $this->author_templ->p('OUT'); |