[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/class.apps.php, 1.1.1.1.2.7
From: |
nomail |
Subject: |
[Phpgroupware-cvs] api/class.apps.php, 1.1.1.1.2.7 |
Date: |
Sat, 8 May 2004 08:08:18 +0200 |
Update of /api
Modified Files:
Branch: proposal-branch
class.apps.php
date: 2004/05/08 06:08:18; author: jengo; state: Exp; lines: +12 -14
Log Message:
For some odd reason, __sleep() and __wakeup() is making it NOT serialize the
object
=====================================================================
Index: api/class.apps.php
diff -u api/class.apps.php:1.1.1.1.2.6 api/class.apps.php:1.1.1.1.2.7
--- api/class.apps.php:1.1.1.1.2.6 Fri Apr 16 20:59:48 2004
+++ api/class.apps.php Sat May 8 06:08:18 2004
@@ -36,10 +36,11 @@
$this->db->query("SELECT * FROM phpgw_apps WHERE
app_enabled=1 order by app_title");
$this->db->Halt_On_Error = $tmp;
*/
+
$dbresult = $GLOBALS['phpgw']->db->Execute("SELECT *
FROM phpgw_apps WHERE app_enabled=1 order by app_title");
- if($dbresult !== false)
+ if ($dbresult !== false)
{
- while (!$dbresult->EOF)
+ while (! $dbresult->EOF)
{
$title =
lang($dbresult->fields['app_title'], $dbresult->fields['app_name']);
$iconfile =
$dbresult->fields['app_name'].'/skins/'.$GLOBALS['phpgw_data']['prefs']['api.skin'].'/images/icon.png';
@@ -51,19 +52,16 @@
}
}
-
$this->allapps[$dbresult->fields['app_name']] =
array('name'=>$dbresult->fields['app_name'], 'title'=>$title,
'icon'=>$iconfile);
+
$this->allapps[$dbresult->fields['app_name']] = array
+ (
+ 'name' =>
$dbresult->fields['app_name'],
+ 'title' => $title,
+ 'icon' => $iconfile
+ );
+
$dbresult->MoveNext();
}
}
- }
-
- function __sleep()
- {
- // stub so its gets cache'd. No cleanup needed.
- }
-
- function __wakeup()
- {
}
function get_user_apps()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/class.apps.php, 1.1.1.1.2.7,
nomail <=