aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/GenericController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-06-23 19:45:28 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-06-23 19:45:28 +0000
commite29f02659a5328a52042fb43bd3baad321ee3e91 (patch)
treeb8f6fc9ba122bc5094974e932458f069285fc6b0 /h-source/Application/Controllers/GenericController.php
parent34adb20d0ffe996bf454ade33ff02fef70968730 (diff)
administrators can now approve device page submitted by anonymous users
Diffstat (limited to 'h-source/Application/Controllers/GenericController.php')
-rw-r--r--h-source/Application/Controllers/GenericController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/GenericController.php b/h-source/Application/Controllers/GenericController.php
index 92831f7..949f3ae 100644
--- a/h-source/Application/Controllers/GenericController.php
+++ b/h-source/Application/Controllers/GenericController.php
@@ -472,7 +472,7 @@ class GenericController extends BaseController
$data['tree'] = null;
$data['isDeleted'] = false;
- $data['md_javascript'] = "moderator_dialog(\"devicehide\",\"device\");moderator_dialog(\"deviceshow\",\"device\");";
+ $data['md_javascript'] = "moderator_dialog(\"devicehide\",\"device\");moderator_dialog(\"deviceshow\",\"device\");moderator_dialog(\"deviceapprove\",\"device_app\");";
if ($this->mod->checkType($clean['id_hard']))
{
@@ -489,6 +489,7 @@ class GenericController extends BaseController
$data['title'] = $data['ne_name'].' - '.Website::$generalName;
$data['tree'] = $this->getSpecHardLink() . " &raquo; <span class='last_tree_element'>".$data['ne_name']."</span>";
$data['isDeleted'] = $this->m['HardwareModel']->isDeleted($clean['id_hard']);
+ $data['isApproved'] = strcmp($data['table'][0]['hardware']['approved'],'yes') === 0 ? true : false;
if ($data['isDeleted'])
{