Skip to content

Commit

Permalink
phpfreechattemplate refactoring : rename to pfctemplate
Browse files Browse the repository at this point in the history
git-svn-id: https://phpfreechat.svn.sourceforge.net/svnroot/phpfreechat/trunk@428 2772adf2-ac07-0410-9d30-e29d8120292e
  • Loading branch information
kerphi committed Apr 16, 2006
1 parent 358e138 commit c192341
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* phpfreechattemplate.class.php
* pfctemplate.class.php
*
* Copyright © 2006 Stephane Gully <[email protected]>
*
Expand All @@ -23,15 +23,15 @@
require_once dirname(__FILE__)."/pfci18n.class.php";

/**
* phpFreeChatTemplate is used to display chat templates (html and javascript)
* pfcTemplate is used to display chat templates (html and javascript)
* @author Stephane Gully <[email protected]>
*/
class phpFreeChatTemplate
class pfcTemplate
{
var $tpl_filename;
var $vars;

function phpFreeChatTemplate($tpl_filename = "")
function pfcTemplate($tpl_filename = "")
{
$this->tpl_filename = $tpl_filename;
}
Expand Down
8 changes: 4 additions & 4 deletions src/phpfreechat.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require_once dirname(__FILE__)."/pfccommand.class.php";
require_once dirname(__FILE__)."/pfcglobalconfig.class.php";
require_once dirname(__FILE__)."/pfcuserconfig.class.php";
require_once dirname(__FILE__)."/phpfreechattemplate.class.php";
require_once dirname(__FILE__)."/pfctemplate.class.php";
require_once dirname(__FILE__)."/../lib/utf8/utf8.php";

/**
Expand Down Expand Up @@ -96,7 +96,7 @@ function printJavaScript( $return = false )
$output .= "<script type=\"text/javascript\" src=\"".$js_path."/utf8.js\"></script>";

// print phpfreechat specific javascript
$t = new phpFreeChatTemplate();
$t = new pfcTemplate();
$t->assignObject($c,"c");
$t->assignObject($u,"u");
$output .= "<script type=\"text/javascript\">\n // <![CDATA[\n";
Expand Down Expand Up @@ -144,7 +144,7 @@ function printChat( $return = false )

pfcI18N::SwitchOutputEncoding($c->output_encoding);

$t = new phpFreeChatTemplate($c->getFilePathFromTheme("templates/chat.html.tpl.php"));
$t = new pfcTemplate($c->getFilePathFromTheme("templates/chat.html.tpl.php"));
$t->assignObject($u,"u");
$t->assignObject($c,"c");
$output = $t->getOutput();
Expand Down Expand Up @@ -175,7 +175,7 @@ function printStyle( $return = false )

$css_filename1 = dirname(__FILE__)."/../themes/default/templates/style.css.tpl.php";
$css_filename2 = $c->getFilePathFromTheme("templates/style.css.tpl.php");
$t = new phpFreeChatTemplate();
$t = new pfcTemplate();
$t->assignObject($u,"u");
$t->assignObject($c,"c");
$t->setTemplate($css_filename1);
Expand Down

0 comments on commit c192341

Please sign in to comment.