Changeset 1925 for plugins/blocNotes
- Timestamp:
- 11/30/09 19:14:55 (14 years ago)
- Location:
- plugins/blocNotes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/blocNotes/_define.php
r1208 r1925 29 29 /* Description*/ 'Display notebooks on the backend', 30 30 /* Author */ 'Moe (http://gniark.net/)', 31 /* Version */ '1.0. 3',31 /* Version */ '1.0.4', 32 32 /* Permissions */ 'usage,contentadmin' 33 33 ); -
plugins/blocNotes/_install.php
r1208 r1925 71 71 } 72 72 73 if (version_compare($i_version,'1.0.4','<')) 74 { 75 # rename blocNotes field to bloc_notes (fix problem with PostgreSQL) 76 if ($core->con->driver() == 'pgsql') 77 { 78 $core->con->execute('ALTER TABLE '.$core->prefix.'user '. 79 'RENAME COLUMN blocNotes TO bloc_notes;'); 80 } 81 else 82 { 83 $core->con->execute('ALTER TABLE '.$core->prefix.'user '. 84 'CHANGE blocNotes bloc_notes TEXT;'); 85 } 86 } 87 73 88 # table 74 89 $s = new dbStruct($core->con,$core->prefix); 75 90 76 # add bloc Notes column to (dc_)user91 # add bloc_notes column to (dc_)user 77 92 $s->user 78 ->bloc Notes('text',0,true,null)93 ->bloc_notes('text',0,true,null) 79 94 ; 80 95 -
plugins/blocNotes/inc/lib.blocNotes.php
r1604 r1925 38 38 $set = $core->blog->settings; 39 39 40 $notes = $core->con->select('SELECT bloc Notes '.40 $notes = $core->con->select('SELECT bloc_notes '. 41 41 'FROM '.$core->prefix.'user '. 42 42 'WHERE user_id = \''. … … 71 71 # Personal notebook 72 72 $cur = $core->con->openCursor($core->prefix.'user'); 73 $cur->bloc Notes = $_POST['blocNotes_personal_text'];73 $cur->bloc_notes = $_POST['blocNotes_personal_text']; 74 74 $cur->update('WHERE user_id = \''.$core->con->escape($core->auth->userID()).'\''); 75 75
Note: See TracChangeset
for help on using the changeset viewer.