From 7d39c8ca0dc9f3aabf99312592a9b7206de4d19f Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 07 Nov 2012 12:14:12 -0500
Subject: [PATCH] - Added recurring items reminder cron job (billing module) to cron_daily.sh.

---
 server/plugins-available/apache2_plugin.inc.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index ea5747d..542d62a 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -1582,7 +1582,7 @@
                         $tmp_symlink = str_replace('[website_domain]',$data['old']['domain'],$tmp_symlink);
                         // Remove trailing slash
                         if(substr($tmp_symlink, -1, 1) == '/') $tmp_symlink = substr($tmp_symlink, 0, -1);
-                        // create the symlinks, if not exist
+                        // delete the symlink
                         if(is_link($tmp_symlink)) {
                             $app->system->unlink($tmp_symlink);
                             $app->log('Removing symlink: '.$tmp_symlink,LOGLEVEL_DEBUG);
@@ -2557,6 +2557,8 @@
 	}
 
 	public function create_relative_link($f, $t) {
+		global $app;
+		
 		// $from already exists
 		$from = realpath($f);
 

--
Gitblit v1.9.1