Module: nagvis
Branch: master
Commit: 99a235a78011f0eb2c5fc228967c898015d03353
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=99a235a78011f0eb2c5fc228967c898015d03353

Author: Lars Michelsen <[email protected]>
Date:   Thu Sep 23 16:57:14 2010 +0200

Also checking nagvis etc directory to be writeable

---

 share/server/core/classes/CoreSQLiteHandler.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/share/server/core/classes/CoreSQLiteHandler.php 
b/share/server/core/classes/CoreSQLiteHandler.php
index 9b35366..cd0542d 100644
--- a/share/server/core/classes/CoreSQLiteHandler.php
+++ b/share/server/core/classes/CoreSQLiteHandler.php
@@ -53,7 +53,8 @@ class CoreSQLiteHandler {
        }
 
        public function isWriteable() {
-               return GlobalCore::getInstance()->checkWriteable($this->file);
+               return 
GlobalCore::getInstance()->checkWriteable(dirname($this->file))
+                                        && 
GlobalCore::getInstance()->checkWriteable($this->file);
        }
        
        public function tableExist($table) {


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to