[geeklog-jp commit] r917 - in trunk/geeklog-1-jp-extended: plugins/calendarjp public_html/admin/plugins/calendarjp

Back to archive index

codes****@googl***** codes****@googl*****
2008年 10月 8日 (水) 21:22:10 JST


Author: dengenxp
Date: Wed Oct  8 05:17:02 2008
New Revision: 917

Modified:
    trunk/geeklog-1-jp-extended/plugins/calendarjp/functions.inc
    trunk/geeklog-1-jp-extended/plugins/calendarjp/readme_jp.html
     
trunk/geeklog-1-jp-extended/public_html/admin/plugins/calendarjp/install.php

Log:
calendarjpプラグイン:r915の修正をtrunk/geeklog-1-jp-extendedへ反映させま 
す。

Modified: trunk/geeklog-1-jp-extended/plugins/calendarjp/functions.inc
==============================================================================
--- trunk/geeklog-1-jp-extended/plugins/calendarjp/functions.inc	(original)
+++ trunk/geeklog-1-jp-extended/plugins/calendarjp/functions.inc	Wed Oct  8  
05:17:02 2008
@@ -58,7 +58,7 @@
      $_CAJP_CONF = $ca_config->get_config('calendarjp');
  }

-$_CAJP_CONF['version'] = '1.0.3';
+$_CAJP_CONF['version'] = '1.0.4';

  $_TABLES['eventsjp']              = $_DB_table_prefix . 'eventsjp';
  $_TABLES['eventsubmissionjp']     =  
$_DB_table_prefix . 'eventsubmissionjp';
@@ -1442,15 +1442,22 @@
  */
  function plugin_upgrade_calendarjp()
  {
+    global $_CONF, $_TABLES, $_CAJP_CONF;
+
      // the plugin needs these function so complain when they don't exist
-    if (!function_exists('PLG_uninstall') ||
-            !function_exists('COM_createLink')) {
+    if (!function_exists('PLG_uninstall') | 
| !function_exists('COM_createLink')) {
          return 3002;
      }

-    // upgrades are done by the install script - return a generic error
-    COM_errorLog("Plugin upgrade function not implemented");
-    return 3001;
+    $pi_version = DB_getItem($_TABLES['plugins'], 'pi_version', "(pi_name  
= 'calendarjp')");
+
+    // Update the version numbers
+    DB_query("UPDATE {$_TABLES['plugins']} "
+           . "SET pi_version = '{$_CAJP_CONF['version']}', pi_gl_version  
= '" . VERSION . "' "
+           . "WHERE pi_name = 'calendarjp'");
+    COM_errorLog(ucfirst("calendarjp") . " plugin was successfully updated  
to version {$_CAJP_CONF['version']}.");
+
+    return true;
  }

  /**

Modified: trunk/geeklog-1-jp-extended/plugins/calendarjp/readme_jp.html
==============================================================================
--- trunk/geeklog-1-jp-extended/plugins/calendarjp/readme_jp.html	(original)
+++ trunk/geeklog-1-jp-extended/plugins/calendarjp/readme_jp.html	Wed Oct   
8 05:17:02 2008
@@ -116,9 +116,9 @@
  </head>
  <body>
    <h1><a name="_top">Calendarjp プラグイン</a></h1>
-  <h2>バージョン: 1.0.3</h2>
+  <h2>バージョン: 1.0.4</h2>
    <h2>作成者: Yoshinori Tahara - dengen</h2>
-  <h2>公開日:&nbsp;2008.9.26</h2>
+  <h2>公開日:&nbsp;2008.10.8</h2>
    <h2>ライセンス:&nbsp;GPL</h2>
    <h2>概要:</h2>
    <ul>
@@ -207,6 +207,11 @@
        <th>説明</th>
      </tr>

+    <tr>
+      <td class="center">1.0.4</td>
+      <td class="center">2008.10.8</td>
+      <td><span class="fix">修正</span>&nbsp;アップグレードに対応していなか 
ったので対応しました。</tr>
+    </tr>
      <tr>
        <td class="center">1.0.3</td>
        <td class="center">2008.9.26</td>

Modified:  
trunk/geeklog-1-jp-extended/public_html/admin/plugins/calendarjp/install.php
==============================================================================
---  
trunk/geeklog-1-jp-extended/public_html/admin/plugins/calendarjp/install.php	 
(original)
+++  
trunk/geeklog-1-jp-extended/public_html/admin/plugins/calendarjp/install.php	 
Wed Oct  8 05:17:02 2008
@@ -43,7 +43,7 @@
  //
  $pi_display_name = 'Calendarjp';
  $pi_name         = 'calendarjp';
-$pi_version      = '1.0.3';
+$pi_version      = '1.0.4';
  $gl_version      = '1.5.0';
  $pi_url          = 'http://www.geeklog.jp/';




Geeklogjp-changes メーリングリストの案内
Back to archive index