Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Commit

Permalink
fix minor things and ensure blank javascript files don't break plugin…
Browse files Browse the repository at this point in the history
… anymore
  • Loading branch information
johnbintz committed Sep 1, 2009
1 parent ba87d3f commit d7cde95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion comicpress-manager.php
Expand Up @@ -3,7 +3,7 @@
Plugin Name: ComicPress Manager
Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/
Description: Manage the comics within a <a href="http://www.comicpress.org/">ComicPress</a> theme installation.
Version: 1.4.6
Version: 1.4.7
Author: John Bintz
Author URI: http://www.coswellproductions.com/wordpress/
Expand Down
10 changes: 6 additions & 4 deletions comicpress_manager_admin.php
Expand Up @@ -668,7 +668,7 @@ function cpm_post_editor($width = 435, $is_import = false) {
if (is_array($form_title_and_field)) {
list($title, $field, $id) = $form_title_and_field; ?>
<tr<?php echo (!empty($id) ? " id=\"$id\"" : "") ?>>
<th scope="row" valign="top"><?php echo $title ?></td>
<th scope="row" valign="top"><?php echo $title ?></th>
<td valign="top"><?php echo $field ?></td>
</tr>
<?php } else { ?>
Expand Down Expand Up @@ -1809,7 +1809,9 @@ function cpm_include_javascript($name) {
$file_to_use = $regular_file;
if (file_exists($js_path . '/' . $minified_file)) {
if (filemtime($js_path . '/' . $minified_file) >= filemtime($js_path . '/' . $regular_file)) {
$file_to_use = $minified_file;
if (filesize($js_path . '/' . $minified_file) > 0) {
$file_to_use = $minified_file;
}
}
}

Expand Down Expand Up @@ -2141,7 +2143,7 @@ function cpm_show_comicpress_details() {
<?php printf(__('(ID %s)', 'comicpress-manager'), $cpm_config->properties['comiccat']) ?>
<?php } ?>
</li>
<li><strong><?php _e('Blog category:', 'comicpress-manager') ?></strong> <a href="<?php echo get_category_link($cpm_config->properties['blogcat']) ?>" ?>
<li><strong><?php _e('Blog category:', 'comicpress-manager') ?></strong> <a href="<?php echo get_category_link($cpm_config->properties['blogcat']) ?>">
<?php echo $cpm_config->blog_category_info['name'] ?></a> <?php printf(__('(ID %s)', 'comicpress-manager'), $cpm_config->properties['blogcat']) ?></li>

<?php if (!$wpmu_version) { ?>
Expand Down Expand Up @@ -2295,7 +2297,7 @@ function cpm_show_debug_info($display_none = true) {
$new_output_config[$key] = $value;
}

var_dump($new_output_config);
var_dump($new_output_config); // ignore var_dump
?></span>
<?php

Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Expand Up @@ -3,7 +3,7 @@ Contributors: johncoswell
Tags: comicpress, webcomics, management, admin, posts, plugin
Requires at least: 2.5.1
Tested up to: 2.8.4
Stable tag: 1.4.6
Stable tag: 1.4.7
Donate link: http://www.coswellproductions.com/wordpress/wordpress-plugins/

ComicPress Manager ties in with the ComicPress theme to make managing your WordPress-hosted Webcomic easy and fast.
Expand Down

0 comments on commit d7cde95

Please sign in to comment.