Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes to stop warnings being logged

  • Loading branch information...
commit 00c9673d618a40bdb8e7a67f415854bb82ee007e 1 parent f1a190e
unknown authored
Showing with 12 additions and 10 deletions.
  1. +6 −3 README.txt
  2. +1 −6 content/content.manage.php
  3. +5 −1 extension.driver.php
9 README.txt
View
@@ -1,12 +1,12 @@
Page Fields
-------------------------------------------------------------------------------
-Version: 1.0.3
+Version: 1.0.4
Author: Simon Keary
-Build Date: 2009-07-05
+Build Date: 2009-07-07
Requirements: Symphony 2.0.3 or greater
-Compatibilty: Tested on Symphony 2.0.3 (2009-07-05)
+Compatibilty: Tested on Symphony 2.0.3 (2009-07-07)
This extension aims to to improve the usability of Symphony and provide a simple
way to associate developer-defined content blocks or fields for pages and simple
@@ -63,3 +63,6 @@ You can change these prefixes if you like by editing lib/page_fields_defines.php
1.0.3
- Update of install instructions in readme.
+
+1.0.4
+- Fixes to stop warnings being logged.
7 content/content.manage.php
View
@@ -117,8 +117,7 @@ private function createViewPageFieldsRowForPage($page, $isOdd)
}
else
{
- $colActions = Widget::TableData();
- $colActions->appendChild(Widget::Anchor('Edit', URL . '/symphony/blueprints/sections/edit/' . $page['section_id'] . '/'));
+ $colActions = Widget::TableData(Widget::Anchor('Edit', URL . '/symphony/blueprints/sections/edit/' . $page['section_id'] . '/'));
$colActions->appendChild(new XMLElement('span', ', '));
$colActions->appendChild(Widget::Anchor('Delete', URL . PF_MANAGE_URL . 'delete/' . $page['section_id'] . '/'));
}
@@ -127,10 +126,6 @@ private function createViewPageFieldsRowForPage($page, $isOdd)
{
$class[] = 'odd';
}
- if (in_array($page['id'], $this->_hilights))
- {
- $class[] = 'failed';
- }
return Widget::TableRow(
array($colTitle, $colUrl, $colActions),
6 extension.driver.php
View
@@ -109,8 +109,12 @@ public function customiseAdminPageOutput($context)
//
$dom = new DOMDocument;
$dom->preserveWhiteSpace = true;
- $dom->loadHTML($context['output']);
+ function maskErrors() {}
+ set_error_handler('maskErrors');
+ $dom->loadHTML($context['output']);
+ restore_error_handler();
+
// Locate the form element in the page and get it's action attribute.
// This indicates the page that is being rendered.
//
Please sign in to comment.
Something went wrong with that request. Please try again.