@@ -33,8 +33,8 @@ |
||
33 | 33 | |
34 | 34 | if ($permHelper) { |
35 | 35 | // this is the name and item we are going to work with |
36 | - $gperm_name='xmfdemo-perm'; |
|
37 | - $gperm_itemid=1; |
|
36 | + $gperm_name = 'xmfdemo-perm'; |
|
37 | + $gperm_itemid = 1; |
|
38 | 38 | |
39 | 39 | // if this is a post operation get and save our variables |
40 | 40 | if ('POST' == Request::getMethod()) { |
@@ -29,8 +29,8 @@ |
||
29 | 29 | |
30 | 30 | // code marker |
31 | 31 | // define some dummy content |
32 | -$title="xmf - the XOOPS Module Framework"; |
|
33 | -$article =<<<EOT |
|
32 | +$title = "xmf - the XOOPS Module Framework"; |
|
33 | +$article = <<<EOT |
|
34 | 34 | XMF is Copyright © 2011-2016 The XOOPS Project |
35 | 35 | |
36 | 36 | This program is free software; you can redistribute it and/or modify |
@@ -18,21 +18,21 @@ |
||
18 | 18 | defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); |
19 | 19 | |
20 | 20 | // get path to icons |
21 | -$pathIcon32=''; |
|
21 | +$pathIcon32 = ''; |
|
22 | 22 | if (class_exists('Xmf\Module\Admin', true)) { |
23 | 23 | $pathIcon32 = \Xmf\Module\Admin::menuIconPath(''); |
24 | 24 | } |
25 | 25 | |
26 | -$adminmenu=array(); |
|
26 | +$adminmenu = array(); |
|
27 | 27 | // Index |
28 | 28 | $adminmenu[] = array( |
29 | - 'title' => _MI_XMFDEMO_ADMENU1 , |
|
30 | - 'link' => 'admin/index.php' , |
|
31 | - 'icon' => $pathIcon32.'home.png' |
|
32 | -) ; |
|
29 | + 'title' => _MI_XMFDEMO_ADMENU1, |
|
30 | + 'link' => 'admin/index.php', |
|
31 | + 'icon' => $pathIcon32 . 'home.png' |
|
32 | +); |
|
33 | 33 | // About |
34 | 34 | $adminmenu[] = array( |
35 | - 'title' => _MI_XMFDEMO_ADMENU2 , |
|
36 | - 'link' => 'admin/about.php' , |
|
37 | - 'icon' => $pathIcon32.'about.png' |
|
38 | -) ; |
|
35 | + 'title' => _MI_XMFDEMO_ADMENU2, |
|
36 | + 'link' => 'admin/about.php', |
|
37 | + 'icon' => $pathIcon32 . 'about.png' |
|
38 | +); |