mirror of
https://github.com/pluginsGLPI/example.git
synced 2026-10-04 19:04:06 +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:
1 parent
38603b3d54
commit
25786db89a
1 file changed
+2
-2
@@ -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'
|
||||||
|
|||||||
Reference in new issue
Block a user