summaryrefslogtreecommitdiff
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
parent377cb9f1efec63e1ae76fa1f683c134ceb88fa65 (diff)
downloadthemes-e41faea9b3672dd01dfcb794d3b76ee600dbf3e6.tar.gz
themes-e41faea9b3672dd01dfcb794d3b76ee600dbf3e6.tar.bz2
themes-e41faea9b3672dd01dfcb794d3b76ee600dbf3e6.zip
Namespace tidies
-rwxr-xr-xadmin/admin_custom_modules_inc.php6
-rwxr-xr-xedit_css.php7
2 files changed, 8 insertions, 5 deletions
diff --git a/admin/admin_custom_modules_inc.php b/admin/admin_custom_modules_inc.php
index fe63841..cbd68e9 100755
--- a/admin/admin_custom_modules_inc.php
+++ b/admin/admin_custom_modules_inc.php
@@ -2,13 +2,15 @@
// $Header$
require_once( '../../kernel/includes/setup_inc.php' );
+use Bitweaver\KernalTools;
+
$feedback = [];
if( !empty( $_REQUEST['name'] )) {
if( !empty( $_REQUEST['action'] )) {
if( $_REQUEST['action'] == 'remove' ) {
if( $gBitThemes->expungeCustomModule( $_REQUEST['name'] )) {
- $feedback['success'] = tra( 'The module was successsfully removed.' );
+ $feedback['success'] = KernelTools::tra( 'The module was successsfully removed.' );
} else {
$feedback['error'] = $gBitThemes->mErrors;
}
@@ -17,7 +19,7 @@ if( !empty( $_REQUEST['name'] )) {
}
} elseif( !empty( $_REQUEST['save'] )) {
if( $gBitThemes->storeCustomModule( $_REQUEST )) {
- $feedback['success'] = tra( 'The module was successsfully stored.' );
+ $feedback['success'] = KernelTools::tra( 'The module was successsfully stored.' );
} else {
$feedback['error'] = $gBitThemes->mErrors;
$gBitSmarty->assign( 'module', $_REQUEST );
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;
}