@@ -89,7 +89,9 @@ |
||
| 89 | 89 | <li><a href="#" onclick="showSSIBlock('ssi_quickSearch'); return false;">Quick Search Box</a></li> |
| 90 | 90 | <li><a href="#" onclick="showSSIBlock('ssi_recentAttachments'); return false;">Recent Attachments</a></li> |
| 91 | 91 | </ul> |
| 92 | - <?php if ($user_info['is_admin']) { ?> |
|
| 92 | + <?php if ($user_info['is_admin']) |
|
| 93 | +{ |
|
| 94 | +?> |
|
| 93 | 95 | <h3>Advanced Functions <img class="help" title="Functions that require additional tweaking, not just copy and paste." src="<?php echo $settings['images_url']; ?>/helptopics.png" alt=""></h3> |
| 94 | 96 | <ul> |
| 95 | 97 | <li><a href="#" onclick="showSSIBlock('ssi_showPoll'); return false;">Show Single Poll</a></li> |
@@ -1364,7 +1364,6 @@ |
||
| 1364 | 1364 | // return all the info. |
| 1365 | 1365 | return $context['to_install']; |
| 1366 | 1366 | } |
| 1367 | - |
|
| 1368 | 1367 | else |
| 1369 | 1368 | fatal_lang_error('theme_install_error_title', false); |
| 1370 | 1369 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * @return bool Always returns true |
| 24 | 24 | */ |
| 25 | 25 | public function execute() |
| 26 | - { |
|
| 26 | + { |
|
| 27 | 27 | global $txt, $smcFunc, $txtBirthdayEmails, $modSettings, $sourcedir; |
| 28 | 28 | |
| 29 | 29 | $greeting = isset($modSettings['birthday_email']) ? $modSettings['birthday_email'] : 'happy_birthday'; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @return bool Always returns true. |
| 25 | 25 | */ |
| 26 | 26 | public function execute() |
| 27 | - { |
|
| 27 | + { |
|
| 28 | 28 | global $sourcedir, $smcFunc, $language, $modSettings, $scripturl; |
| 29 | 29 | |
| 30 | 30 | // Do we have any group moderators? |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * @return bool Always returns true |
| 24 | 24 | */ |
| 25 | 25 | public function execute() |
| 26 | - { |
|
| 26 | + { |
|
| 27 | 27 | global $sourcedir; |
| 28 | 28 | |
| 29 | 29 | require_once($sourcedir . '/Subs.php'); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * @return bool Always returns true |
| 25 | 25 | */ |
| 26 | 26 | public function execute() |
| 27 | - { |
|
| 27 | + { |
|
| 28 | 28 | global $sourcedir, $smcFunc, $user_profile; |
| 29 | 29 | |
| 30 | 30 | // Get everyone who could be notified - those are the people who can see the calendar. |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | * @return bool Always returns true |
| 24 | 24 | */ |
| 25 | 25 | public function execute() |
| 26 | - { |
|
| 26 | + { |
|
| 27 | 27 | global $smcFunc, $sourcedir; |
| 28 | 28 | |
| 29 | 29 | // Figure out if the user wants to be notified. |
@@ -222,7 +222,6 @@ |
||
| 222 | 222 | |
| 223 | 223 | $this->_validLikes['can_like'] = ($this->_user['id'] == $topicOwner ? 'cannot_like_content' : (allowedTo('likes_like') ? true : 'cannot_like_content')); |
| 224 | 224 | } |
| 225 | - |
|
| 226 | 225 | else |
| 227 | 226 | { |
| 228 | 227 | // Modders: This will give you whatever the user offers up in terms of liking, e.g. $this->_type=msg, $this->_content=1 |
@@ -199,7 +199,6 @@ |
||
| 199 | 199 | list ($context['attachments']['quantity'], $context['attachments']['total_size']) = $smcFunc['db_fetch_row']($request); |
| 200 | 200 | $smcFunc['db_free_result']($request); |
| 201 | 201 | } |
| 202 | - |
|
| 203 | 202 | else |
| 204 | 203 | $context['attachments'] = array( |
| 205 | 204 | 'quantity' => 0, |