From f4829462077dff01b34343fee26b97500b2e5139 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 8 Apr 2009 12:46:15 +0000 Subject: Refs #963: Autop changed to longtext on standard views git-svn-id: https://code.elgg.org/elgg/trunk@3193 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/main.php | 4 ++-- views/default/admin/plugins.php | 2 +- views/default/admin/site.php | 2 +- views/default/admin/user.php | 2 +- views/default/canvas/layouts/widgets.php | 2 +- views/default/messages/errors/error.php | 2 +- views/default/messages/exceptions/exception.php | 4 ++-- views/default/messages/messages/message.php | 2 +- views/default/usersettings/main.php | 2 +- views/default/usersettings/plugins.php | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) (limited to 'views/default') diff --git a/views/default/admin/main.php b/views/default/admin/main.php index df1b32cde..e1ed8c25f 100644 --- a/views/default/admin/main.php +++ b/views/default/admin/main.php @@ -11,8 +11,8 @@ * @link http://elgg.org/ */ - // Description of what's going on - echo "

" . autop(elgg_echo("admin:description")) . "

"; + // Description of what's going on + echo "

" . elgg_view('output/longtext', array('value' => elgg_echo("admin:description"))) . "

"; diff --git a/views/default/admin/plugins.php b/views/default/admin/plugins.php index 17ab86eae..9e14eaa2e 100644 --- a/views/default/admin/plugins.php +++ b/views/default/admin/plugins.php @@ -18,7 +18,7 @@ // Description of what's going on $buttons = " url}action/admin/plugins/enableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('enableall')." url}action/admin/plugins/disableall?__elgg_token=$token&__elgg_ts=$ts\">".elgg_echo('disableall')." "; - echo "
" . $buttons . autop(elgg_echo("admin:plugins:description")) . "
"; + echo "
" . $buttons . elgg_view('output/longtext', array('value' => elgg_echo("admin:plugins:description"))) . "
"; $limit = get_input('limit', 10); $offset = get_input('offset', 0); diff --git a/views/default/admin/site.php b/views/default/admin/site.php index 020b72b59..a1acae53a 100644 --- a/views/default/admin/site.php +++ b/views/default/admin/site.php @@ -14,7 +14,7 @@ global $CONFIG; // Description of what's going on - echo "
" . autop(elgg_echo("admin:site:description")) . " "; + echo "
" . elgg_view('output/longtext', array('value' => elgg_echo("admin:site:description"))) . " "; echo elgg_view("settings/system",array("action" => $CONFIG->wwwroot."action/admin/site/update_basic")); // Always want to do this first. diff --git a/views/default/admin/user.php b/views/default/admin/user.php index a648789aa..117656fa0 100644 --- a/views/default/admin/user.php +++ b/views/default/admin/user.php @@ -12,7 +12,7 @@ */ // Description of what's going on - echo "
" . autop(elgg_echo("admin:user:description")) . "
"; + echo "
" . elgg_view('output/longtext', array('value' => elgg_echo("admin:user:description"))) . "
"; echo elgg_view("admin/user_opt/adduser"); diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index 476da9857..8b7789851 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -72,7 +72,7 @@

- + elgg_echo('widgets:add:description'))); ?>
diff --git a/views/default/messages/errors/error.php b/views/default/messages/errors/error.php index 63caae81e..71289bdf4 100644 --- a/views/default/messages/errors/error.php +++ b/views/default/messages/errors/error.php @@ -16,5 +16,5 @@ ?>

- + $vars['object'])); ?>

\ No newline at end of file diff --git a/views/default/messages/exceptions/exception.php b/views/default/messages/exceptions/exception.php index 5d1faac81..f3668e3e6 100644 --- a/views/default/messages/exceptions/exception.php +++ b/views/default/messages/exceptions/exception.php @@ -17,7 +17,7 @@ global $CONFIG; $class = get_class($vars['object']); - $message = autop($vars['object']->getMessage()); + $message = elgg_view('output/longtext', array('value' => $vars['object']->getMessage())); $body = <<< END

@@ -29,7 +29,7 @@ END; if ($CONFIG->debug) { - $details = autop(htmlentities(print_r($vars['object'], true), ENT_QUOTES, 'UTF-8')); + $details = elgg_view('output/longtext', array('value' => htmlentities(print_r($vars['object'], true), ENT_QUOTES, 'UTF-8'))); $body .= <<< END


diff --git a/views/default/messages/messages/message.php b/views/default/messages/messages/message.php index 285d4bedd..27771e4ef 100644 --- a/views/default/messages/messages/message.php +++ b/views/default/messages/messages/message.php @@ -16,5 +16,5 @@ ?>

- + $vars['object'])); ?>

\ No newline at end of file diff --git a/views/default/usersettings/main.php b/views/default/usersettings/main.php index 4a814c083..39ef5486e 100644 --- a/views/default/usersettings/main.php +++ b/views/default/usersettings/main.php @@ -12,5 +12,5 @@ */ // Description of what's going on - echo "

" . autop(elgg_echo("usersettings:description")) . "

"; + echo "

" . elgg_view('output/longtext', array('value' => elgg_echo("usersettings:description"))) . "

"; ?> \ No newline at end of file diff --git a/views/default/usersettings/plugins.php b/views/default/usersettings/plugins.php index 6573766f7..c18c5aaef 100644 --- a/views/default/usersettings/plugins.php +++ b/views/default/usersettings/plugins.php @@ -11,7 +11,7 @@ */ // Description of what's going on - echo "
" . autop(elgg_echo("usersettings:plugins:description")) . "
"; + echo "
" . elgg_view('output/longtext', array('value' => elgg_echo("usersettings:plugins:description"))) . "
"; $limit = get_input('limit', 10); $offset = get_input('offset', 0); -- cgit v1.2.3