Skip to content

Commit

Permalink
Fix some minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
olafgleba committed Sep 14, 2012
1 parent 7d8e192 commit d90f69d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 43 deletions.
2 changes: 1 addition & 1 deletion welcompose/admin/callbacks.php
Expand Up @@ -254,7 +254,7 @@
$syntax = '{select_named ns="[Application|Community|Content|Media]" class="[classToUse]" method="[classMethodToUse]" var="[variable]"}';
break;
case 'tag_cloud' :
$syntax = '{tag_cloud page=$page.id var="[variable]" type="[variable]" limit="[number]" range="[number]"}';
$syntax = '{tag_cloud page=$page.id var="[variable]" type="[blog|event]" limit="[number]" range="[number]"}';
break;
case 'get_glossary' :
$syntax = '{get_glossary var="[variable]" action="[pager|content]"}';
Expand Down
25 changes: 0 additions & 25 deletions welcompose/admin/content/pages_blogs_postings_copy.php
Expand Up @@ -519,17 +519,6 @@
'response' => Base_Cnc::filterRequest($_SESSION['response'], WCOM_REGEX_NUMERIC),
'preview_ctrl' => Base_Cnc::filterRequest($_SESSION['preview_ctrl'], WCOM_REGEX_NUMERIC)
);

// assign $_SESSION to smarty
$BASE->utility->smarty->assign('session', $session);

// empty $_SESSION
if (!empty($_SESSION['response'])) {
$_SESSION['response'] = '';
}
if (!empty($_SESSION['preview_ctrl'])) {
$_SESSION['preview_ctrl'] = '';
}

// select available projects
$select_params = array(
Expand Down Expand Up @@ -738,20 +727,6 @@
}
}
}

// add response to session
$_SESSION['response'] = 1;

// preview control value
$activePreview = $preview->getValue();

// add preview_ctrl to session
if (!empty($activePreview)) {
$_SESSION['preview_ctrl'] = 1;
}

// redirect
$SESSION->save();

// clean the buffer
if (!$BASE->debug_enabled()) {
Expand Down
16 changes: 0 additions & 16 deletions welcompose/admin/content/pages_events_postings_copy.php
Expand Up @@ -293,19 +293,6 @@
// assign current user and project id
$BASE->utility->smarty->assign('wcom_current_user', WCOM_CURRENT_USER);
$BASE->utility->smarty->assign('wcom_current_project', WCOM_CURRENT_PROJECT);

// build session
$session = array(
'response' => Base_Cnc::filterRequest($_SESSION['response'], WCOM_REGEX_NUMERIC)
);

// assign $_SESSION to smarty
$BASE->utility->smarty->assign('session', $session);

// empty $_SESSION
if (!empty($_SESSION['response'])) {
$_SESSION['response'] = '';
}

// select available projects
$select_params = array(
Expand Down Expand Up @@ -418,9 +405,6 @@
throw $e;
}

// add response to session
$_SESSION['response'] = 1;

// clean the buffer
if (!$BASE->debug_enabled()) {
@ob_end_clean();
Expand Down
@@ -1 +1 @@
<p class="help">{i18n 'Select the template sets where you'll like to use your template. Press CTRL (on PC) or Command (on Mac) to select or deselect multiple template sets.'}</p>
<p class="help">{i18n 'Select the template sets where you&#39;ll like to use your template. Press CTRL (on PC) or Command (on Mac) to select or deselect multiple template sets.'}</p>
Expand Up @@ -394,6 +394,7 @@ public function render ()
// prepare attributes
$attributes = array(
'id' => $field_id,
'value' => $_field['label'],
'class' => (!empty($_field['class'])) ? 'fsubmit '. $_field['class'] : 'fsubmit'
);
// create element
Expand Down
3 changes: 3 additions & 0 deletions welcompose/core/templating_classes/template.class.php
Expand Up @@ -744,6 +744,9 @@ public function testForUniqueTypeAndSet ($type, $id = null)
throw new Templating_TemplateException("You are not allowed to perform this action");
}

// define some vars
$set = null;

// input check
if (empty($type)) {
throw new Templating_TemplateException("Input for parameter type is not expected to be empty");
Expand Down

0 comments on commit d90f69d

Please sign in to comment.