From 5e061d2060702516328a723ad6c9577eb0aa782d Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Thu, 25 Dec 2008 09:46:01 -0500 Subject: Some fixups of patches not already migrated to trunk to bring inline with PEAR coding stds darcs-hash:20081225144601-7b5ce-4846f3d036c36037836d15ed672c10ba33f9f84c.gz --- lib/settingsaction.php | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'lib/settingsaction.php') diff --git a/lib/settingsaction.php b/lib/settingsaction.php index 62de39d45..03bac3a93 100644 --- a/lib/settingsaction.php +++ b/lib/settingsaction.php @@ -60,12 +60,25 @@ class SettingsAction extends Action } } - function form_header($title, $msg=NULL, $success=false) { - common_show_header($title, - NULL, - array($msg, $success), - array($this, 'show_top')); - } + function form_header($title, $msg=NULL, $success=false) + { + common_show_header($title, + array($this, 'show_header'), + array($msg, $success), + array($this, 'show_top')); + } + + function show_header() + { + common_element('link', array('rel' => 'stylesheet', + 'type' => 'text/css', + 'href' => common_path('js/jcrop/jquery.Jcrop.css?version='.LACONICA_VERSION), + 'media' => 'screen, projection, tv')); + common_element('script', array('type' => 'text/javascript', + 'src' => common_path('js/jcrop/jquery.Jcrop.pack.js'))); + common_element('script', array('type' => 'text/javascript', + 'src' => common_path('js/jcrop/jquery.Jcrop.go.js'))); + } function show_top($arr) { -- cgit v1.2.3-54-g00ecf