aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/swatch.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-02-22 18:56:09 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-02-22 18:56:09 +0000
commitb27add94f8eb36d5e740afadf5306c48873736f9 (patch)
treec6cfecef18aea66c956a8a36606014ec483b2ec4 /phpBB/adm/swatch.php
parent84f795e9fbd172924280593d575bf4587c9b40e5 (diff)
downloadforums-b27add94f8eb36d5e740afadf5306c48873736f9.tar
forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.gz
forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.bz2
forums-b27add94f8eb36d5e740afadf5306c48873736f9.tar.xz
forums-b27add94f8eb36d5e740afadf5306c48873736f9.zip
$template to phpbb::$template
git-svn-id: file:///svn/phpbb/trunk@9337 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/swatch.php')
-rw-r--r--phpBB/adm/swatch.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/adm/swatch.php b/phpBB/adm/swatch.php
index d17cd9090a..921943d597 100644
--- a/phpBB/adm/swatch.php
+++ b/phpBB/adm/swatch.php
@@ -23,11 +23,11 @@ phpbb::$acl->init(phpbb::$user->data);
phpbb::$user->setup();
// Set custom template for admin area
-$template->set_custom_template(PHPBB_ROOT_PATH . phpbb::$base_config['admin_folder'] . '/style', 'admin');
+phpbb::$template->set_custom_template(PHPBB_ROOT_PATH . phpbb::$base_config['admin_folder'] . '/style', 'admin');
-$template->set_filenames(array(
- 'body' => 'colour_swatch.html')
-);
+phpbb::$template->set_filenames(array(
+ 'body' => 'colour_swatch.html',
+));
$form = request_var('form', '');
$name = request_var('name', '');
@@ -36,7 +36,7 @@ $name = request_var('name', '');
$form = (!preg_match('/^[a-z0-9_-]+$/i', $form)) ? '' : $form;
$name = (!preg_match('/^[a-z0-9_-]+$/i', $name)) ? '' : $name;
-$template->assign_vars(array(
+phpbb::$template->assign_vars(array(
'OPENER' => $form,
'NAME' => $name,
'T_IMAGES_PATH' => PHPBB_ROOT_PATH . 'images/',
@@ -46,7 +46,7 @@ $template->assign_vars(array(
'S_CONTENT_ENCODING' => 'UTF-8',
));
-$template->display('body');
+phpbb::$template->display('body');
garbage_collection();