summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9d1bb72)
raw | patch | inline | side by side (parent: 9d1bb72)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Aug 2006 12:09:32 +0000 (12:09 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Aug 2006 12:09:32 +0000 (12:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4517 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/netatalk/class_netatalk.inc | patch | blob | history |
diff --git a/plugins/personal/netatalk/class_netatalk.inc b/plugins/personal/netatalk/class_netatalk.inc
index 54c2c6f782a13ce7738eb1bae3ecf283e0315ec0..5d82f6e9939ba06961b944e8ca02383fef58f78e 100644 (file)
var $shares_settings = array();
var $selectedshare = "";
var $mountDirectory = "/Network/Servers";
+ var $shares_loaded= false;
/* Attributes to save to LDAP */
/* Slip setting those attributes, we can't define class variables with - */
function get_shares()
{
+ $this->shares_loaded= TRUE;
+
/* Get netatalk shares */
$this->shares = array();
$ldap = $this->config->get_ldap_link();
if (strlen($this->apple_user_homeDirectory) >0) {
$this->apple_user_homepath_raw = substr($this->apple_user_homeDirectory, strrpos($this->apple_user_homeDirectory, '/') + 1 );
}
-
- $this->get_shares();
/* Save initial account state */
$this->initially_was_account = $this->is_account;
/* Execute the plugin, produce the output. */
function execute() {
- plugin :: execute();
+ if (!$this->shares_loaded){
+ $this->get_shares();
+ }
+
+ plugin::execute();
/* Use the smarty templating engine here... */
$smarty = get_smarty();