Skip to content

Commit 672e04b

Browse files
committed
cosmetic changes
1 parent 005fc00 commit 672e04b

File tree

6 files changed

+12
-24
lines changed

6 files changed

+12
-24
lines changed

publisher/admin/mimetypes.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static function add()
9595
$publisher = PublisherPublisher::getInstance();
9696
global $limit, $start;
9797
$error = array();
98-
if (empty(XoopsRequest::get('add_mime', '', 'POST'))) {
98+
if (!(XoopsRequest::get('add_mime', '', 'POST'))) {
9999
publisherCpHeader();
100100
//publisher_adminMenu(4, _AM_PUBLISHER_MIMETYPES);
101101

@@ -263,7 +263,7 @@ public static function edit()
263263
}
264264
$mimetype = $publisher->getHandler('mimetype')->get($mime_id); // Retrieve mimetype object
265265

266-
if (empty(XoopsRequest::getString('edit_mime', '', 'POST'))) {
266+
if (!(XoopsRequest::getString('edit_mime', '', 'POST'))) {
267267
$session = PublisherSession::getInstance();
268268
$mime_type = $session->get("publisher_editMime_$mime_id");
269269
$mime_errors = $session->get("publisher_editMimeErr_$mime_id");
@@ -560,7 +560,7 @@ public static function search()
560560

561561
publisherOpenCollapsableBar('mimemsearchtable', 'mimesearchicon', _AM_PUBLISHER_MIME_SEARCH);
562562

563-
if (empty(XoopsRequest::getString('mime_search', '', 'POST'))) {
563+
if (!(XoopsRequest::getString('mime_search', '', 'POST'))) {
564564
echo "<form action='mimetypes.php?op=search' method='post'>";
565565
echo "<table width='100%' cellspacing='1' class='outer'>";
566566
echo "<tr><th colspan='2'>" . _AM_PUBLISHER_TEXT_SEARCH_MIME . "</th></tr>";
@@ -715,7 +715,7 @@ public static function updateMimeValue()
715715
$start = XoopsRequest::getInt('start', 0, 'GET');
716716

717717

718-
if (empty(XoopsRequest::getString('id', '', 'GET'))) {
718+
if (!(XoopsRequest::getString('id', '', 'GET'))) {
719719
redirect_header(PUBLISHER_ADMIN_URL . "/mimetypes.php", 3, _AM_PUBLISHER_MESSAGE_NO_ID);
720720
} else {
721721
$mime_id = XoopsRequest::getInt('id', 0, 'GET');

publisher/assets/css/jquery.popeye.style.css

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,7 @@
132132

133133
#ppy1 .ppy-nav {
134134
background: #0c3b3d;
135-
background: -moz-linear-gradient(
136-
center bottom,
137-
rgb(12,59,61) 0%,
138-
rgb(58,131,133) 100%
139-
);
135+
background: -moz-linear-gradient(center bottom, rgb(12,59,61) 0%, rgb(58,131,133) 100%);
140136
width: 104px;
141137
height: 32px;
142138
padding: 5px;
@@ -370,13 +366,7 @@
370366
color-stop(0.6, rgba(51,51,51,0.7)),
371367
color-stop(1, rgba(51,51,51,1))
372368
);
373-
background: -moz-linear-gradient(
374-
center bottom,
375-
rgba(51,51,51,1) 0%,
376-
rgba(51,51,51,0.7) 40%,
377-
rgba(51,51,51,0.7) 60%,
378-
rgba(51,51,51,1) 100%
379-
);
369+
background: -moz-linear-gradient(center bottom, rgba(51,51,51,1) 0%, rgba(51,51,51,0.7) 40%, rgba(51,51,51,0.7) 60%, rgba(51,51,51,1) 100%);
380370
width: 100%;
381371
height: 100%;
382372
text-align: center;
@@ -433,4 +423,4 @@
433423
#ppy3 .ppy-nav a:hover {
434424
background-color: #333;
435425
cursor: pointer;
436-
}
426+
}

publisher/docs/changelog.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h5>1.02 Beta 3 (2014-xx-xx)</h5>
1+
<h5>1.02 RC1 (2015-xx-xx)</h5>
22
- updated to XOOPS 2.5.7 version of jQuery UI Tabs (noo-b/mamba)
33
- replaced PublisherRequest with calls to XoopsRequest (mamba)
44
- redesigned archives section to have months horizontally (mjoel/Mithrandir/mamba)
@@ -16,13 +16,10 @@
1616
- updated popeye.js to 2.1 (mamba)
1717
- changed popeye mode to imagelist (mamba)
1818

19-
2019
TODO:
2120
- test with MySQL strict mode (STRICT_TRANS_TABLES)
2221

2322

24-
25-
2623
<h5>1.02 Beta 2 (2014-xx-xx)</h5>
2724
- added ID column in Admin's Category view (mamba)
2825
- fixed preg_replace /e in request.php (mamba)

publisher/include/oninstall.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@ function xoops_module_install_publisher(XoopsModule &$xoopsModule)
3535
{
3636
xoops_loadLanguage('modinfo', $xoopsModule->getVar('dirname'));
3737
include_once $GLOBALS['xoops']->path("/modules/" . $xoopsModule->getVar('dirname') . "/include/functions.php");
38+
xoops_loadLanguage('admin', $xoopsModule->getVar('dirname'));
3839

3940
$ret = true;
4041
$msg = '';
4142
// Create content directory
42-
$dir = $GLOBALS['xoops']->path("/uploads/" . $xoopsModule->getVar('dirname') . "/content");
43+
$dir = $GLOBALS['xoops']->path("uploads/" . $xoopsModule->getVar('dirname') . "/content");
4344
if (!publisherMkdir($dir))
4445
$msg .= sprintf(_AM_PUBLISHER_DIRNOTCREATED, $dir);
4546
if (empty($msg))

publisher/templates/publisher_archive.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<td><{$story.title}></td>
3131
<td align="center">
3232
<a href="<{$story.print_link}>" rel="nofollow"><img src="<{$xoops_url}>/modules/<{$module_dirname}>/assets/images/links/print.gif" border="0" alt="<{$lang_printer}>"/></a>
33-
<a href="<{$story.mail_link}>" target="_top"/><img src="<{$xoops_url}>/modules/<{$module_dirname}>/assets/images/links/friend.gif" border="0" alt="<{$smarty.const._MD_PUBLISHER_SENDSTORY}>"/></a>
33+
<a href="<{$story.mail_link}>" target="_top"><img src="<{$xoops_url}>/modules/<{$module_dirname}>/assets/images/links/friend.gif" border="0" alt="<{$smarty.const._MD_PUBLISHER_SENDSTORY}>"/></a>
3434
</td>
3535
<td align="center"><{$story.counter}></td>
3636
<td align="center"><{$story.date}></td>

publisher/xoops_version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
'sqlfile' => array('mysql' => 'sql/mysql.sql'),
6969
// ------------------- Tables -------------------
7070
'tables' => array(
71-
'publisher_categorie',
71+
'publisher_categories',
7272
'publisher_items',
7373
'publisher_files',
7474
'publisher_meta',

0 commit comments

Comments
 (0)