mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
Fix non static functions
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@199 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
38603b3d54
commit
25786db89a
@ -42,7 +42,7 @@ class PluginExampleExample extends CommonDBTM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function canCreate() {
|
static function canCreate() {
|
||||||
|
|
||||||
if (isset($_SESSION["glpi_plugin_example_profile"])) {
|
if (isset($_SESSION["glpi_plugin_example_profile"])) {
|
||||||
return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w');
|
return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w');
|
||||||
@ -51,7 +51,7 @@ class PluginExampleExample extends CommonDBTM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function canView() {
|
static function canView() {
|
||||||
|
|
||||||
if (isset($_SESSION["glpi_plugin_example_profile"])) {
|
if (isset($_SESSION["glpi_plugin_example_profile"])) {
|
||||||
return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w'
|
return ($_SESSION["glpi_plugin_example_profile"]['example'] == 'w'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user