logo       


SF.net SVN: mantisbt: [4755] trunk/mantisbt/core/plugin_api.php: msg#00060

Subject: SF.net SVN: mantisbt: [4755] trunk/mantisbt/core/plugin_api.php
Revision: 4755
          http://mantisbt.svn.sourceforge.net/mantisbt/?rev=4755&view=rev
Author:   nuclear_eclipse
Date:     2007-11-15 07:01:09 -0800 (Thu, 15 Nov 2007)

Log Message:
-----------
Various plugin API config fixes.

Modified Paths:
--------------
    trunk/mantisbt/core/plugin_api.php

Modified: trunk/mantisbt/core/plugin_api.php
===================================================================
--- trunk/mantisbt/core/plugin_api.php  2007-11-15 14:00:56 UTC (rev 4754)
+++ trunk/mantisbt/core/plugin_api.php  2007-11-15 15:01:09 UTC (rev 4755)
@@ -345,7 +345,7 @@
                                VALUES ( ".db_param(0).", 1 )";
        db_query_bound( $t_query, array( $c_basename ) );
 
-       if ( false === ( config_get_global( 'schema_plugin_'.$p_basename, false 
) ) ) {
+       if ( false === ( config_get( 'schema_' . $p_basename . '_schema', false 
) ) ) {
                config_set( 'plugin_' . $p_basename . '_schema', -1 );
        }
        plugin_upgrade( $p_basename );
@@ -364,7 +364,7 @@
                return false;
        }
 
-       $t_plugin_schema_version = config_get_global( 
'plugin_schema_'.$p_basename, -1 );
+       $t_plugin_schema_version = config_get( 'plugin_' . $p_basename . 
'_schema', -1 );
 
        return ( $t_plugin_schema_version < count( $t_plugin_schema ) - 1 );
 }
@@ -375,7 +375,7 @@
  * @return multi True if upgrade completed, null if problem
  */
 function plugin_upgrade( $p_basename ) {
-       access_ensure_global_level( config_get_global( 
'manage_plugin_threshold' ) );
+       access_ensure_global_level( config_get( 'manage_plugin_threshold' ) );
 
        $t_schema_version = config_get_global( 'plugin_' . $p_basename . 
'_schema', -1 );
        $t_schema = plugin_get_schema( $p_basename );


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe