diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-27 15:00:50 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-27 15:00:50 +0000 |
| commit | 3f9237878b44bf3f4e7a09c148d54c3fbe5c7d8d (patch) | |
| tree | a32eb3d4a2a9875a3735b6bd7a2b5b8c071abe77 /edit_book.php | |
| parent | 086f0e2af7733621d86dfb4a369e938087b5fac0 (diff) | |
| download | wiki-3f9237878b44bf3f4e7a09c148d54c3fbe5c7d8d.tar.gz wiki-3f9237878b44bf3f4e7a09c148d54c3fbe5c7d8d.tar.bz2 wiki-3f9237878b44bf3f4e7a09c148d54c3fbe5c7d8d.zip | |
Namespace changes and short array style
Diffstat (limited to 'edit_book.php')
| -rwxr-xr-x | edit_book.php | 5 |
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; } |
