]> git.mjollnir.org Git - s9y.git/commitdiff
Insert default config values so they don't need querying the next time
authorgarvinhicking <garvinhicking>
Tue, 18 Apr 2006 08:32:08 +0000 (08:32 +0000)
committergarvinhicking <garvinhicking>
Tue, 18 Apr 2006 08:32:08 +0000 (08:32 +0000)
include/plugin_api.inc.php

index 04eb621b693d9146e6fd377df96ee54bc9cac4d0..cdc761d415b828aea9d530bca50c4b803b1435d0 100644 (file)
@@ -685,7 +685,7 @@ class serendipity_plugin_api {
         if (!isset($data['stackable']) || empty($data['stackable'])) {
             $data['stackable'] = '0';
         }
-        
+
         if (!isset($data['last_modified'])) {
             $data['last_modified'] = $lastModified;
         }
@@ -1343,6 +1343,8 @@ class serendipity_plugin {
             $this->introspect_config_item($name, $cbag);
             $_res = $cbag->get('default');
             unset($cbag);
+            // Set the fetched value, so the default will not be fetched the next config call time
+            $this->set_config($name, $_res);
         }
 
         return $_res;