summaryrefslogtreecommitdiff
path: root/edit_css.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-26 18:22:00 +0000
committerlsces <lester@lsces.co.uk>2026-03-26 18:22:00 +0000
commite41faea9b3672dd01dfcb794d3b76ee600dbf3e6 (patch)
treeccf38a8654018b8608c5d63aacd4b9942565361b /edit_css.php
parent377cb9f1efec63e1ae76fa1f683c134ceb88fa65 (diff)
downloadthemes-e41faea9b3672dd01dfcb794d3b76ee600dbf3e6.tar.gz
themes-e41faea9b3672dd01dfcb794d3b76ee600dbf3e6.tar.bz2
themes-e41faea9b3672dd01dfcb794d3b76ee600dbf3e6.zip
Namespace tidies
Diffstat (limited to 'edit_css.php')
-rwxr-xr-xedit_css.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/edit_css.php b/edit_css.php
index aeb9de1..5709850 100755
--- a/edit_css.php
+++ b/edit_css.php
@@ -12,6 +12,7 @@
/**
* Setup
*/
+use Bitweaver\Kerneltools;
include_once( '../kernel/includes/setup_inc.php' );
include_once( THEMES_PKG_PATH.'css_lib.php' );
@@ -96,7 +97,7 @@ $gBitSmarty->assign('customCSSImageURL',$customCSSImageURL);
// Create a custom.css for this user if they do not already have one
if (!file_exists($customCSSFile)) {
if (!copy(THEMES_PKG_PATH.'/styles/basic/basic.css', $customCSSFile)) {
- $gBitSmarty->assign('msg', tra("Unable to create a custom CSS file for you!"));
+ $gBitSmarty->assign('msg', KernelTools::tra"Unable to create a custom CSS file for you!"));
$gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'edit' ));
die;
}
@@ -108,7 +109,7 @@ if (isset($_REQUEST["fSaveCSS"])and $_REQUEST["fSaveCSS"]) {
$fp = fopen($customCSSFile, "w");
if (!$fp) {
- $gBitSmarty->assign('msg', tra("You dont have permission to write the style sheet"));
+ $gBitSmarty->assign('msg', KernelTools::tra"You dont have permission to write the style sheet"));
$gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'edit' ));
die;
}
@@ -133,7 +134,7 @@ if (isset($_REQUEST["fSaveCSS"])and $_REQUEST["fSaveCSS"]) {
$fp = fopen($customCSSFile, "w");
if (!$fp) {
- $gBitSmarty->assign('msg', tra("You dont have permission to write the style sheet"));
+ $gBitSmarty->assign('msg', KernelTools::tra"You dont have permission to write the style sheet"));
$gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'edit' ));
die;
}