[Do not change quota when toggle prepaid flag Adrian Georgescu **20090710045608] hunk ./library/sip_settings.php 1967 - if (!$this->prepaid) { + if ($this->pstn_changes_allowed) { hunk ./library/sip_settings.php 1969 - if ($this->pstn_changes_allowed) { - - print " - - "; - print _("Quota"); - print " - - - - - - + + - - "; + } + + print " + + - - - + hunk ./library/sip_settings.php 2003 + + print " + +
"; - - printf (" %s",$this->quota,$this->currency); - - if ($this->quota || in_array("quota",$this->groups)) { - $this->getCallStatistics(); - if ($this->thisMonth['price']) { - print "   "; - printf (_("This month usage: %.2f %s"),$this->thisMonth['price'], $this->currency); - printf (" / %d ",$this->thisMonth['calls']); - print _("Calls"); - } - } - - print " - - "; + print " +
"; + print _("Quota"); + print " + + + + - -
"; hunk ./library/sip_settings.php 1980 - if ($this->pstn_changes_allowed) { - print _("Reset"); - print " - - "; + printf (" %s",$this->quota,$this->currency); + + if ($this->quota || in_array("quota",$this->groups)) { + $this->getCallStatistics(); + if ($this->thisMonth['price']) { + print "   "; + printf (_("This month usage: %.2f %s"),$this->thisMonth['price'], $this->currency); + printf (" / %d ",$this->thisMonth['calls']); + print _("Calls"); hunk ./library/sip_settings.php 1990 - - print "
-
+ "; hunk ./library/sip_settings.php 1997 - } else if ($this->quota) { - print " -
"; - print _("Quota"); + if ($this->pstn_changes_allowed) { + print _("Reset"); hunk ./library/sip_settings.php 2000 - - - - - -
"; - printf ("%s %s",$this->quota,$this->currency); - print "
-
+ + + "; + + } else if ($this->quota) { + print " + + "; + print _("Quota"); + print " + + + + + + +
"; + printf ("%s %s",$this->quota,$this->currency); + print "
+ + + "; hunk ./library/sip_settings.php 2597 - function saveSettings() { - dprint("saveSettings()"); + function update() { + dprint("update()"); hunk ./library/sip_settings.php 2699 - $result->quota=0; - $quota=0; hunk ./library/sip_settings.php 2888 - $result->properties=$this->properties; + $result->properties=$this->properties; hunk ./library/sip_settings.php 2890 - if (!$result->quota) $result->quota=0; + if (!$result->quota) $result->quota=0; hunk ./sip_settings.phtml 75 - $SipSettings->saveSettings(); + $SipSettings->update();