summaryrefslogtreecommitdiff
path: root/edit_book.php
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-27 15:00:50 +0000
committerlsces <lester@lsces.co.uk>2026-03-27 15:00:50 +0000
commit3f9237878b44bf3f4e7a09c148d54c3fbe5c7d8d (patch)
treea32eb3d4a2a9875a3735b6bd7a2b5b8c071abe77 /edit_book.php
parent086f0e2af7733621d86dfb4a369e938087b5fac0 (diff)
downloadwiki-3f9237878b44bf3f4e7a09c148d54c3fbe5c7d8d.tar.gz
wiki-3f9237878b44bf3f4e7a09c148d54c3fbe5c7d8d.tar.bz2
wiki-3f9237878b44bf3f4e7a09c148d54c3fbe5c7d8d.zip
Namespace changes and short array style
Diffstat (limited to 'edit_book.php')
-rwxr-xr-xedit_book.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/edit_book.php b/edit_book.php
index 081f8bf..945e9cf 100755
--- a/edit_book.php
+++ b/edit_book.php
@@ -15,6 +15,7 @@
*/
require_once '../kernel/includes/setup_inc.php';
use \Bitweaver\BitBase;
+use \Bitweaver\KernelTools;
use \Bitweaver\Liberty\LibertyStructure;
use \Bitweaver\Wiki\BitBook;
use \Bitweaver\Wiki\BitPage;
@@ -70,7 +71,7 @@ if( $gContent->isValid() ){
if( isset($_REQUEST["createstructure"]) ) {
if ((empty($_REQUEST['name']))) {
- $gBitSmarty->assign('msg', tra("You must specify a name."));
+ $gBitSmarty->assign('msg', KernelTools::tra"You must specify a name."));
$gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'edit' ));
die;
}
@@ -94,7 +95,7 @@ if( isset($_REQUEST["createstructure"]) ) {
$structure_id = $gStructure->storeNode( $structureHash );
//Cannot create a structure if a structure already exists
if (!isset($structure_id)) {
- $gBitSmarty->assign('msg', $_REQUEST['name'] . " " . tra("page not added (Exists)"));
+ $gBitSmarty->assign('msg', $_REQUEST['name'] . " " . KernelTools::tra"page not added (Exists)"));
$gBitSystem->display( 'error.tpl' , null, array( 'display_mode' => 'edit' ));
die;
}