Changeset 1272

Show
Ignore:
Timestamp:
07/25/07 13:56:15 (6 years ago)
Author:
benoitg
Message:
  • import_user_database.php: Fix permission call systax error. That does't mean the script works as a whole, it hasn't been maintained for years.
  • DependenciesList?.php: Make it extend GenericDataObject? after all. Fixes problem displaying it in the generic editor.


Location:
trunk/wifidog-auth
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/CHANGELOG

    r1271 r1272  
    55        * Content.php:  Fix warning when selecting owners. Fix dangling metadata objects when deleting an object. 
    66        * Statistics::getDateRangeUI():  Make days end a minute before midnight, not a minute before noon, DOH! 
    7  
     7        * import_user_database.php:  Fix permission call systax error.  That does't mean the script works as a whole, it hasn't been maintained for years. 
     8        * DependenciesList.php:  Make it extend GenericDataObject after all.  Fixes problem displaying it in the generic editor. 
     9         
    8102007-07-22 Benoit Grégoire  <bock@step.polymtl.ca> 
    911        * generic_object_admin.pgp:  Fix problems when creating new content objects.  Fix problems including the content type classes. 
  • trunk/wifidog-auth/wifidog/admin/import_user_database.php

    r1249 r1272  
    4848require_once('classes/Server.php'); 
    4949 
    50 Security::requirePermission('SERVER_PERM_EDIT_SERVER_CONFIG', Server::getServer()); 
     50Security::requirePermission(Permission::P('SERVER_PERM_EDIT_SERVER_CONFIG'), Server::getServer()); 
    5151$db = AbstractDb::getObject();  
    5252$html = ''; 
  • trunk/wifidog-auth/wifidog/classes/DependenciesList.php

    r1264 r1272  
    6969/*WARNING:  You must NOT require anything, or extend anything except Dependency.php.  DependenciesList is used from the install script.*/ 
    7070require_once ('classes/Dependency.php'); 
    71 class DependenciesList 
     71require_once ('classes/GenericDataObject.php'); 
     72 
     73class DependenciesList extends GenericDataObject 
    7274{ 
    7375    public static function &getObject($id) 
  • trunk/wifidog-auth/wifidog/classes/GenericDataObject.php

    r1249 r1272  
    4343 
    4444/** 
    45  * Load content classes 
     45 * Load required classes 
    4646 */ 
    47  
     47require_once ('classes/GenericObject.php'); 
    4848/** 
    4949 * Any object that implement this interface can be administered in a generic way.