Dotclear


Ignore:
Timestamp:
04/27/11 21:45:55 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
userprefs
Message:

Mise en place de la gestion des favoris par défaut (super admin only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.workspace.php

    r13 r30  
    264264      
    265265     @param    id        <b>string</b>       Pref ID 
    266      */ 
    267      public function drop($id) 
     266     @param    force_global   <b>boolean</b> Force global pref drop 
     267     */ 
     268     public function drop($id,$force_global=false) 
    268269     { 
    269270          if (!$this->ws) { 
     
    273274          $strReq = 'DELETE FROM '.$this->table.' '; 
    274275           
    275           if ($this->user_id === null) { 
     276          if (($force_global) || ($this->user_id === null)) { 
    276277               $strReq .= 'WHERE user_id IS NULL '; 
    277278               $global = true; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map